Conditional Logic
Conditional Logic
Section titled “Conditional Logic”Show or hide fields based on how someone answers a previous question. If they say “Yes” to one thing, you can reveal follow-up fields. If they say “No,” those fields stay hidden.
Before you start
Section titled “Before you start”- Required permission:
forms:conditional_logic - You should know how to build a form first
1. Open your form in the builder
Section titled “1. Open your form in the builder”Go to Create → Forms and click on the form you want to edit.
2. Select the field you want to show or hide
Section titled “2. Select the field you want to show or hide”Click on the field that should appear conditionally. This is the target field — it stays hidden until the right answer triggers it.
3. Open the field’s condition settings
Section titled “3. Open the field’s condition settings”In the field settings panel, look for the Conditions section. This is where you define when this field appears.
4. Set your condition
Section titled “4. Set your condition”Pick three things:
- Source field — which question triggers the condition (e.g., “Returning Judge?”)
- Operator — how to compare (equals, does not equal, contains, etc.)
- Value — the answer that triggers visibility (e.g., “Yes”)
Example: If Returning Judge? equals Yes, show the Previous Year field.
5. Add more conditions if needed
Section titled “5. Add more conditions if needed”You can stack multiple conditions on a single field. All conditions must be true for the field to appear.
6. Save
Section titled “6. Save”Click Save and preview the form to test your conditions. Fill in different answers and watch fields appear and disappear.
Good to know
Section titled “Good to know”- Conditions work with most field types — select, radio, checkbox, yes/no, and text fields all work as source fields.
- A hidden field isn’t submitted. If a field is hidden when the respondent submits, its value won’t be in the response data.
- You can chain conditions: Field B depends on Field A, and Field C depends on Field B. Keep it reasonable — deeply nested chains get hard to debug.
- Conditional fields pair well with multi-page forms. You can conditionally show fields on any page, or use logic to make certain pages feel shorter.
- Preview the form and test your conditions yourself. Fill in different answers and make sure the right fields show up.