Difference between revisions of "SurveyCTO Coding Practices"
|Line 16:||Line 16:|
Choice lists are the answer options an enumerator can choose from in a ''select one'' or ''select multiple
Choice lists are the answer options an enumerator can choose from in a ''select one'' or ''select multiple'' . They are listed in the choices in the SurveyCTO questionnaire. the programming language SurveyCTOhas very few restrictions on how you can code your options, there are [[SurveyCTO Choice Lists|choice list best practices]] that for data quality.
[[SurveyCTO Dynamically Populated Choice Lists|dynamically populated]] answers given by the respondents .
Revision as of 15:34, 13 February 2017
This article discuss solutions to common issues in the SurveyCTO programming language. For a general introduction to how to structure your approach to CAPI programming or best practices settings, see the Questionnaire Programming topic.
All coding examples linked to in this section are stored in Google Drive. SurveyCTO also allows you to pull this code directly to your server, using the URL of the Google Sheet (alternatively, you can copy the code to Excel).
Use a lot of groups but do not over use them. In general, groups are used to fulfill one of the purposes below:
- Apply a relevance condition to multiple fields.
- If you have multiple questions displayed at the same time.
- Frame all the questions on a module in group. Only do this at the highest level of the survey, i.e. do not use this for sub-levels of a module.
Repeat groups are a group that is repeated at least once. Thus most properties that apply to a regular group also apply to a repeat group.
Choice lists are the answer options an enumerator can choose from in a select one or select multiple question. They are listed in the choices tab in the SurveyCTO questionnaire. Open Data Kit, the programming language of SurveyCTO, has very few restrictions on how you can code your options. However, there are choice list best practices that matter for data quality.
It is possible to program dynamically populated choice lists using answers given by the respondents in a previous question.
- list here other articles related to this topic, with a brief description and link