SurveyCTO Dynamically Populated Choice Lists

Revision as of 01:56, 13 February 2017 by Kbjarkefur (talk | contribs) (Created page with "== Best Practice == 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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Best Practice

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.