Conditional questions
A condition shows additional questions when an answer or calculation matches a rule. Use it for branching, such as asking for details only after “Yes”. Use follow-up questions when a question should repeat for each answer item.
Requires: Write access to the questionnaire and questionnaire editing enabled. A calculation condition also needs a calculation in that questionnaire.
Add a conditional branch
- Open Questions and add the parent question, for example “Would you like to describe an activity?” with Single Choice answers “Yes” and “No”.
- On that question, select Add Condition.
- Choose the answer as the condition source, the equality operator and the value “Yes”. Selecting an offered answer chip fills in an equality condition for that option.
- Confirm with OK. On the new condition row, select the plus button (Add Question to nesting).
- Configure the nested question, for example a Text question asking “Which activity?”. Add further questions under the condition if needed.
- Select Save in the questionnaire toolbar. Use Test with both “Yes” and “No”: the details question should appear only after “Yes”.
The answer condition evaluates the question the condition belongs to. For a calculation condition, select the calculation by name and compare its available result with the target value. If the result is unavailable, the branch stays inactive.
Operators and multiple answers
| Operator | Behavior |
|---|---|
= | Equal text or numerically equal values. |
≠ | A value differs from the target. |
<, ≤, >, ≥ | Numeric comparison; use a numeric target. |
| contains | The answer text contains the target text; matching is case-sensitive. |
For multiple answers, a condition can match any individual answer. In particular, ≠ Yes means at least one answer differs from “Yes”; it does not mean “Yes was not selected”. contains checks a text fragment, not exact membership of a choice list. Prefer equality for a specific choice.
All matching branches can appear; conditions are not an exclusive “first match” chain. Their nested questions can have further conditions. Only the active path contributes to questionnaire progress.
Edit and test branches
Use the condition row's edit button to change a rule. Deleting a condition also deletes its nested questions; check the confirmation carefully.
Test matching and nonmatching answers, multiple simultaneous matches, optional empty answers and unavailable calculation results. For numeric conditions, include the boundary itself and a value on either side. Save and test again after changing answer labels, calculation names or branch structure.