|
Tag: Redirect target changed |
(9 intermediate revisions by 6 users not shown) |
Line 1: |
Line 1: |
| == Best Practice ==
| | #REDIRECT [[SurveyCTO Choice Lists#Dynamically Populated Choice Lists]] |
| Sometimes we want to ask a respondent to select one or several answers out of answers the respondent have given earlier in the interview. For example, we might want to ask who in the household out of the household members listed in the household roster module is currently employed. It is possible to do this by dynamically load previous answers as answer options.
| |
| | |
| Any answer can be used in dynamic choice lists, but when using variables inside a repeat group, one more extra step is required. We cannot reference a field inside a repeat group directly.
| |
| | |
| == Coding Example ==
| |
| | |
| | |
| This example dynamically load answers from a repeat group. If you were to dynamically load answers from fields not inside a repeat group, then you simple reference those fields directly in the choice tab.
| |
| | |
| == Back to Parent ==
| |
| This article is part of the topic [[SurveyCTO Coding Practices]]
| |
| | |
| [[Category: SurveyCTO Coding Practices ]]
| |