How to Add Conditional Logic to Your Forms
Show or hide form fields based on user responses. Create smart, branching forms that adapt to each person.
Before you start
- A form with at least 2 fields
Identify your branching points
Plan which fields should appear conditionally. For example: if someone selects "Yes" for "Do you have dietary restrictions?", then show a "Dietary Requirements" text field.
Add a trigger field
Add the field that will control visibility — typically a dropdown, radio, or checkbox field. For example, add a radio field "Do you have allergies?" with options "Yes" and "No".
Add the conditional field
Add the field that should appear conditionally. For example, add a text field "Please describe your allergies".
Set up the condition
Click the conditional field, go to its settings, and find "Conditional Logic" or "Visibility Rules". Set: Show this field IF "Do you have allergies?" equals "Yes".
Test your logic
Preview the form and test both paths. When you select "Yes", the conditional field should appear. When you select "No", it should be hidden. Test with different combinations.
Frequently Asked Questions
Can I chain multiple conditions?
Yes. You can add multiple conditions to a single field. Choose whether ALL conditions must be true (AND logic) or any one condition (OR logic).
Can I show/hide entire sections?
Yes. In multi-step forms, you can conditionally show or hide entire steps/pages based on earlier responses.
Does conditional logic work on mobile?
Absolutely. Conditional fields animate smoothly on all devices, including mobile phones and tablets.
Are hidden fields included in submissions?
No. Fields that are hidden due to conditional logic are not submitted, keeping your data clean.