Conditional logic allows you to show or hide sections of your form based on a user’s previous answers. This helps create a smoother experience by displaying only the questions that are relevant to the respondent.
What Is Conditional Logic?
Conditional logic is used to dynamically adjust your form based on user input — for example:
If the user selects “Yes”, then show additional follow-up questions.
This ensures the form stays concise and relevant.
Field Types That Support Conditional Logic
You can set up conditional logic using the following field types:
Select (e.g. Yes/No questions)
Checkbox (a single checkbox — not to be confused with multi-select)
Once these fields are added to your form, they can drive visibility of other sections based on how they are answered.
How to Set Up Conditional Logic
Add your Select or Checkbox field
Drag a Select or Checkbox field from the Selection Inputs group in the form builder.
Configure the field options
For Select fields, you might use options like Yes / No.
Tip: Ensure that you select “Choice Required” to enforce the logic.Add the section that should be conditionally shown
Below your logic-driving field, add a new section containing the questions that should appear only when the condition is met.Click the Conditional Logic icon
On the section you want to show conditionally, click the conditional logic icon (located at the top-right of the section card).Set the condition
Choose the field that will drive visibility (e.g. “Select Field Type”).
Choose the response that should trigger the section to appear (e.g. “Yes”).
Click Done
You’ll now see the icon highlighted — this confirms that conditional logic is applied.
Previewing Conditional Logic
To test your logic, you’ll need to:
Publish the form
Create a new record and complete the form as a user would
This will allow you to test how different responses show or hide fields based on your setup.
Example: Show More Questions If “Yes” is Selected
Add a Select field with options “Yes” and “No”.
Below it, add a new section title and description, e.g., “Selected ‘Yes’? Please complete the following:”
Use conditional logic to show this section only when “Yes” is selected.
Mark the fields within this section as required — this ensures users must complete them if they select “Yes”.
💡 Tips
Use Select fields for branching logic (e.g. Yes/No or multi-option questions).
Tick “Choice Required” to ensure the user must select an option, which triggers the logic.
Use Checkbox fields for simple one-condition triggers (e.g. “Show this if checked”).
Label your sections clearly to reflect the logic, such as “If Yes, complete the following”.
Mark fields as required inside logic-triggered sections to ensure they’re completed when shown.
Apply one logic rule per section to keep things easy to manage and debug.
Stack multiple logic-driven sections to build step-by-step or decision-tree-style forms.
The highlighted conditional logic icon on a section indicates logic has been applied.
To remove conditional logic, click the logic icon on the section and select “Remove Condition”
Frequently Asked Questions (FAQs)
Q. Can I use conditional logic with any field type?
A. No — conditional logic can only be driven by Select and Checkbox field types.
Q. Can I show multiple sections based on a single response?
A. Yes! One Select or Checkbox field can trigger the visibility of multiple sections, each with its own conditions.
Q. Does conditional logic work in Preview mode?
A. Not at the moment — to test your logic, publish the form and start a new record.
Q. What happens if a required field is hidden due to logic?
A. Hidden required fields are not enforced. A required field will only be validated if the section in which it resides is visible.
Q. Can I apply conditional logic to individual fields instead of whole sections?
A. No — conditional logic is applied at the section level only. To control the visibility of a field, place it inside its own section and apply logic to that section.
Q. Can I base logic on multiple responses or combine conditions?
A. Not at this time. Conditional logic in IndyForms currently supports one condition per section.
Q. Can logic be based on text input, dates, or number fields?
A. No — only Select and Checkbox fields can be used to trigger conditional logic. Text, date, and number inputs can’t drive logic.
Q. Can I use conditional logic inside repeating sections?
A. Conditional logic can be applied to repeating sections, but not within individual repeated rows. The logic applies to the section as a whole.
Q. Can I duplicate a section that has logic applied?
A. Yes, but you’ll need to reconfigure the logic on the duplicated section — it won’t carry over automatically.
Q. What happens if I delete the field that drives the logic?
A. The condition will break, and the section will appear by default.
Q. Can I hide a section by default, then reveal it using logic?
A. Yes — this is exactly how conditional logic works. Any section with logic applied is hidden until the condition is met.