Grid Layout feature ឱ្យ arrange questions ក្នុង multi-column grid


How it works

Grid layout ត ្ រ ូ វ អ ន ុ វ ត ្ ត ក ្ ន ុ ង levels ពី រ :

  1. Group — set appearance: field-list grid(weight=N)
  2. Fields — set appearance: gridformat<row=R col=C colspan=S/>

Group-level appearance

Appearanceការពិពណ៌នា
field-list grid(weight=2)2-column grid
field-list grid(weight=3)3-column grid
field-list grid(weight=4)4-column grid

Field-level gridformat<> syntax

  gridformat<row=R col=C colspan=S/>
gridformat<row=R col=C colspan=S backgroundcolor=COLOR/>
  
Attributeការពិពណ៌នា
rowRow number (1-based)
colColumn number (1-based)
colspanចំ នួ ន columns ដ ែ ល field span
backgroundcolorCSS color ស ្ រ ើ ច ចិ ត ្ ត

Example: 2-column household survey

typenamelabelappearance
begin_groupdemographicsDemographicsfield-list grid(weight=2)
textfirst_nameFirst namegridformat<row=1 col=1/>
textlast_nameLast namegridformat<row=1 col=2/>
integerageAgegridformat<row=2 col=1/>
textaddressFull addressgridformat<row=3 col=1 colspan=2/>
end_group

Best Practices

  1. ប ្ រ ើ grid layout ស ម ្ រ ា ប ់ screens data-entry intensive ។
  2. Test ន ៅ ល ើ screen size ត ូ ច ជ ា ង ។
  3. Grid layout ល ្ អ ជ ា ង ន ៅ web ហ ើ យ tablet ។

Limitations

  • gridformat<> ដ ំ ណ ើ រ ការ ប ា ន ត ែ ក ្ ន ុ ង group ដ ែ ល ម ា ន grid(weight=N)
  • Grid layout ជ ា rtSurvey web form extension ។
តើទំព័រនេះមានប្រយោជន៍ទេ?