Description
A series of combobox questions where each response defines the available responses on the next combobox. For more advanced dependent questions, see Branching.
Instructions
- Lines 18-66 of the first question's footer must be updated with the nature of the drilldown dropdowns:
- The question named as
dependentDropdown
will be dependent on the question named asindependentDropdown
. unansweredState
defines how the dependent dropdown will respond when the independent dropdown is unanswered.conditionals
defines which items of the dependent dropdown to show for which responses of the independent dropdown.when
refers to the independent dropdown's value.then
refers to the dependent dropdown's values. Both accept a single number or an array of numbers.
- The question named as
Notes
Functions CreateRangedArray
and CombineArrays
are included to improve the experience of defining when
and then
with many values. Examples of both functions can be found in this question.