On this page
code
Appearance
column appearance ក្នុង rtSurvey អនុញ្ញាតឱ្យអ្នក customize ការ បង្ហាញ ដោយ ភ្នែក និង behavior នៃ questions ក្នុង surveys ។ rtSurvey គាំទ្រ standard XLSForm appearance attributes ហើយ extend ពួក វា ជាមួយ options បន្ថែម ។
Standard XLSForm Appearance Attributes
| Appearance Attribute | ប្រភេទ Questions | ការពិពណ៌នា |
|---|---|---|
| multiline | text | បង្កើត multi-line text box |
| minimal | select_one, select_multiple | បង្ហាញ choices ក្នុង dropdown menu |
| quick | select_one | auto-advance ទៅ question បន្ទាប់ (mobile only) |
| no-calendar | date | Suppress calendar display (mobile only) |
| month-year | date | ជ្រើស month និង year តែ ប៉ុណ្ណោះ |
| year | date | ជ្រើស year តែ ប៉ុណ្ណោះ |
| horizontal | select_one, select_multiple | បង្ហាញ choices ដោយ ផ្ដេក (web only) |
| likert | select_one | បង្ហាញ choices ជា Likert scale |
| field-list | groups | បង្ហាញ group ទាំង មូល នៅ screen មួយ (mobile only) |
| signature | image | enable signature capture (mobile only) |
| draw | image | អនុញ្ញាត freehand drawing (mobile only) |
rtSurvey Extended Appearance Attributes
ការ control Data and Display
| Appearance Attribute | ប្រភេទ Questions | ការពិពណ៌នា |
|---|---|---|
invisible | any | លាក់ field ពីការ មើល |
autopull | select_one, select_multiple | ទៅ fetch data ខាង ក្រៅ ដើម្បី populate choices |
floating_hint | text, integer, decimal | បង្ហាញ hint text ជា floating label |
calculate-button | calculate | បន្ថែម button ដែល trigger recalculation |
Layout
| Appearance Attribute | ប្រភេទ Questions | ការពិពណ៌នា |
|---|---|---|
columns(n) | select_one, select_multiple | បង្ហាញ choices ក្នុង n columns |
gridformat<row=R col=C colspan=S> | any | position field ក្នុង CSS-grid layout |
API Integration
| Appearance Attribute | ប្រភេទ Questions | ការពិពណ៌នា |
|---|---|---|
callapi | text, integer, decimal, select_one | enable API call integration |
callapi-verify(params) | text, integer, decimal | trigger API verification call |
Inline date/time format
inline-[%d/%m/%Y]
inline-1line-[%d/%m/%Y %H:%M]
ឧទាហរណ៍:
| type | name | label | appearance |
|---|---|---|---|
| datetime | event_time | Event date and time | inline-[%d/%m/%Y %I:%M %p] |
| date | birth_date | Date of birth | inline-[%d/%m/%Y] |
Best Practices
- ភាព consistent: ប្រើ appearance attributes ដោយ consistent ។
- Mobile vs. Web: ពិ ចារ ណា ថា appearances នឹង render យ៉ាង ណា ។
- Performance: ប្រ យ័ ត ្ ន ជាមួយ appearance attributes ។
- Testing: តែ ង តែ test form ។
តើទំព័រនេះមានប្រយោជន៍ទេ?