Show fields using conditional logic
Show or hide form fields based on customers’ answers to other questions.
What is conditional logic?
Conditional logic displays a field only when its condition is met. This lets you ask follow-up questions without showing every field to every customer.
For example, ask “Do you have dietary requirements?” and show a list of dietary options only when the customer selects “Yes”.
Which fields can trigger conditional logic?
These field types can control whether another field appears:
- Dropdown select
- Multiple choice
- Checkbox
The field picker marks these with Conditional: Can show or hide other fields.
The trigger field is the question customers answer first. Their answer determines whether the conditional field appears.
Set up conditional logic
First, add both the trigger field and the follow-up field to your page.
- Open the page you want to edit.
- Select Form fields in the sidebar.
- Click the follow-up field you want to show conditionally.
- Enable Conditional logic.
- Under Field, select the trigger field.
- Choose a condition, such as is.
- Select a Value if the condition requires one.
- Click Save.
Set the rule on the field you want to show or hide, rather than on the trigger field.
Choose a condition
The condition determines when the follow-up field appears.
| Condition | When the field appears |
|---|---|
| is | When the selected field has the specified value. |
| is not | When the selected field does not have the specified value. |
| is empty | When the selected field has no answer or selection. |
| is not empty | When the selected field has an answer or selection. |
For is and is not, choose the value to compare against. For is empty and is not empty, you do not need to specify a value.
Example: ask about dietary requirements
Add the trigger field
Add a Dropdown select field labelled “Do you have dietary requirements?” with two options:
- Yes
- No
Add the follow-up field
Add a Multiple choice field labelled “Dietary requirements” with options such as Vegetarian, Vegan, Gluten-free and Dairy-free.
If customers should be able to select more than one option, configure Selections allowed accordingly.
Set the condition
Open the Dietary requirements field and enable Conditional logic. Set:
- Field: Do you have dietary requirements?
- Condition: is
- Value: Yes
Select the matching option from your trigger field, then click Save.
The dietary options stay hidden until the customer selects Yes. If they select No, the follow-up field stays hidden.
Turn off conditional logic
- Open the conditional field’s settings.
- Turn off Conditional logic.
- Click Save.
The field’s visibility will no longer depend on that condition.