On this page
code
Default
Default values ក្នុង rtSurvey អនុញ្ញាតឱ្យ pre-populate questions ជាមួយ ចម្លើយ នៅពេល respondent ជួប questions ដំបូង ។
Basic Usage
| type | name | label | default |
|---------|-------------|-------------------------------|------------|
| date | survey_date | Survey date | 2024-07-04 |
| decimal | weight | Respondent's weight? (in kgs) | 51.3 |
Dynamic Defaults
rtSurvey គាំទ្រ dynamic default values ដោយ ប្រើ functions:
| type | name | label | default |
|------|------|------------------------------------| ---------|
| date | d | Enter the date the event occurred? | today() |
rtSurvey-Specific Features
Context-Aware Defaults
| type | name | label | default |
|---------|----------|-----------------|---------------------|
| text | location | Current location| ${current_location} |
Cascading Defaults
| type | name | label | default |
|---------|----------|-----------------|-----------------|
| text | city | City | |
| text | district | District | ${city}-district|
Default in Repeats
| type | name | label | default |
|--------------|-----------|--------------|------------------------|
| begin repeat | visits | Clinic Visits| |
| date | visit_date| Visit Date | ${previous_visit_date} |
| end repeat | | | |
Best Practices
- ប្រើ ដោយ កក្រើក: ប្រើ defaults ត្រឹម តែ ពេល ចាំ បាច់ ។
- ធានា Accuracy: review ហើយ update static default values ។
- Test ដោយ ហ្មត់ ចត់: ជាពិសេស ពេល ប្រើ dynamic defaults ។
- ពិ ចារ ណា User Experience: ធានា defaults មិន mislead respondents ។
តើទំព័រនេះមានប្រយោជន៍ទេ?