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

  1. ប្រើ ដោយ កក្រើក: ប្រើ defaults ត្រឹម តែ ពេល ចាំ បាច់ ។
  2. ធានា Accuracy: review ហើយ update static default values ។
  3. Test ដោយ ហ្មត់ ចត់: ជាពិសេស ពេល ប្រើ dynamic defaults ។
  4. ពិ ចារ ណា User Experience: ធានា defaults មិន mislead respondents ។
តើទំព័រនេះមានប្រយោជន៍ទេ?