Conditional Logic
Show or hide blocks, and control page navigation based on how respondents answer.
What is Conditional Logic
Conditional logic makes your form dynamic. You define rules that trigger actions whenever a respondent's answer matches a condition.
Adding a Rule
- 1Click the + button between blocks and select Conditional Logic.
- 2Pick the field and condition to evaluate.
- 3Choose the action to take when the condition is met.
- 4Stack more conditions and more actions inside the same rule with Add condition and the action list.
Shortcut: open any question's ••• menu and choose Add conditional logic. The rule block lands directly below that question, ready to fill in.
Conditions
A condition compares one answer against a value. Which operators you can choose depends on the type of question the rule points at.
| Operator | Available on |
|---|---|
| Is equal to | Every question type |
| Is not equal to | Every question type |
| Is empty | Every question type |
| Is not empty | Every question type |
| Is any of | Dropdown, multiple choice, checkboxes, multi-select |
| Is not any of | Dropdown, multiple choice, checkboxes, multi-select |
| Contains | Short answer, long answer, email |
| Starts with | Short answer, long answer, email |
| Ends with | Short answer, long answer, email |
| Greater than | Number, date, time |
| Less than | Number, date, time |
| Greater than or equal | Number, date, time |
| Less than or equal | Number, date, time |
Text comparisons ignore letter case and surrounding spaces, so "Yes" and "yes" match the same rule.
Combining conditions
A rule can hold as many conditions as you need. Click the AND label between two of them to switch it to OR.
Consecutive AND conditions form one group and every OR starts a new one. "A AND B OR C AND D" therefore fires when A and B are both true, or when C and D are both true.
Actions
One rule can run several actions at once. They all fire the moment its conditions are met.
Jump to page
Skips to a specific page when the condition is true. Works together with multi-page forms.
Require answer
Makes a field required only when the condition is true.
Show blocks
Reveals the chosen blocks. A block targeted by a Show blocks action starts out hidden and only appears once the condition is met.
Hide blocks
Removes specific blocks from view when the condition is true.
Hide button to disable completion
Removes the completion button, so the form cannot be sent while the condition holds. Use it to stop a respondent who does not qualify.
Example
If the answer to "Are you a student?" is "Yes", show the "Student ID" field. Otherwise it stays hidden.
A hidden question is skipped when the page is validated, so a required question that a rule has hidden can never block a submission.