Conditional logic
#Conditional logic
Conditional logic lets you show or hide fields in your form based on how a customer answers another field. Instead of showing every field to every customer, your form adapts dynamically — displaying only the fields that are relevant to each person.
Plan requirement: Conditional logic is available on Growth and Pro plans.
#What is conditional logic?
Think of it as "if this, then show that." For example:
- If a customer selects "Other" from a dropdown, show a text field asking them to specify.
- If a customer checks "I'd like a callback," show a phone number field.
- If a customer picks "Gift order" from a radio group, show fields for the recipient's name and address.
This keeps your forms clean and focused. Customers only see the fields that apply to them, which leads to higher completion rates and better data quality.
#How it works
Conditional logic uses a simple show/hide mechanism:
- You pick a controlling field — the field whose value determines what happens.
- You set a trigger value — the specific answer that activates the condition.
- You choose which target field(s) should appear when the condition is met.
When the form loads, any field with a conditional rule starts out hidden. As soon as the customer selects or enters the trigger value in the controlling field, the target field appears. If the customer changes their answer, the target field hides again.
This all happens instantly on the page — no page reloads, no waiting.
#Supported controlling field types
Not every field type can be used as a controlling field. The following field types support conditional logic as the trigger:
| Field type | How it works |
|---|---|
| Select (dropdown) | The condition triggers when the customer selects a specific option from the dropdown. |
| Radio buttons | The condition triggers when the customer selects a specific radio option. |
| Checkbox | The condition triggers when the customer checks a specific checkbox option. |
| Hidden field | The condition triggers based on a hidden field's preset value. Useful for advanced setups where you want to control visibility programmatically. |
These field types work well as controllers because they have clearly defined, discrete values that can be matched against a trigger value.
#Setting up conditional display
To add conditional logic to a field:
- Open your form in the form builder.
- Click on the field you want to conditionally show or hide (the target field).
- In the right-side field settings panel, look for the Conditional display section.
- Select the controlling field from the dropdown (this lists all eligible fields in your form).
- Enter the trigger value — the specific answer in the controlling field that should cause this field to appear.
- Save your form.
Example: You have a dropdown field called "How did you hear about us?" with options like "Social media," "Search engine," "Friend referral," and "Other." You want to show a text field called "Please specify" only when the customer selects "Other."
- Click on the "Please specify" text field.
- Set the controlling field to "How did you hear about us?"
- Set the trigger value to "Other."
Now the "Please specify" field only appears when "Other" is selected.
#What happens to hidden fields on submit
When a customer submits your form, any fields that are currently hidden by conditional logic are automatically excluded from the submission data. This is important for two reasons:
- Clean data. You won't get blank or irrelevant field values cluttering your submissions. If a field wasn't shown to the customer, it won't appear in the response.
- Privacy. If a hidden field had a default value or was previously visible and filled in, it won't be included once it's hidden again. Only the fields the customer actually saw and interacted with are submitted.
This behavior is handled automatically by the theme extension — you don't need to configure anything extra.
#Tips for using conditional logic
- Keep it simple. One level of conditional logic (field A controls field B) is easy for customers to understand. Avoid chaining conditions where field A shows field B, which then shows field C — it can get confusing.
- Test thoroughly. After setting up conditional rules, preview your form and test every possible path. Make sure the right fields show and hide as expected.
- Label clearly. If a controlling field triggers additional questions, make sure the options are clearly worded so customers know what to expect.
- Use for optional detail. Conditional logic is perfect for "tell us more" scenarios — start with a broad question, then drill down only when needed.