Conditional Logic
Create dynamic forms with show/hide rules that respond to user input using conditional visibility
What This Feature Does
Conditional logic allows you to create dynamic forms that change based on user responses. You can show or hide fields and sections depending on the values entered in other fields. This creates a more intuitive user experience and ensures users only see relevant questions.
How Conditional Logic Works
Conditional logic uses rules to control field visibility:
- Target Field: The field you want to show or hide
- Source Field: The field whose value triggers the condition
- Operator: "Any Value" (field has content) or "Exact Value" (field matches specific value)
- Value: For "Exact Value" operator, the value that triggers the condition
- Behavior: Show when true or Hide when true
When the condition is met, the target field shows or hides based on your behavior setting.
Setting Up Conditions
Adding a Condition to a Field
- Open your form in the Form Builder
- Select the field you want to conditionally show/hide
- Find the "Conditional" section in the configuration panel
- Enable conditional visibility
- Configure the condition:
- Source Field: Select the field to watch
- Operator: Choose "Any Value" or "Exact Value"
- Value: If using "Exact Value", enter the triggering value
- Behavior: Choose "Show when true" or "Hide when true"
- The condition is saved automatically
Adding a Condition to a Section
Sections can also have conditional visibility, hiding or showing all fields within them:
- Select the section element
- Find "Conditional" in the configuration panel
- Configure the condition as described above
- When the section is hidden, all fields inside are also hidden
Available Operators
| Operator | Description | Example |
|---|---|---|
| Any Value | Field has any value entered | Show details if "Comments" has any value |
| Exact Value | Field equals a specific value | Show follow-up if "Status" equals "Yes" |
Show vs Hide Behavior
For each condition, you can choose:
- Show when true: Field appears when condition is met
- Hide when true: Field is hidden when condition is met
This allows you to create both "show if" and "hide if" logic with the same operators.
Setting Up a Condition
Step-by-Step Configuration
- Select the field you want to show/hide conditionally
- In the configuration panel, find "Conditional Logic"
- Enable conditional visibility
- Configure:
- Source Field: Select the field to watch
- Operator: Choose "Any Value" or "Exact Value"
- Value: If using "Exact Value", enter the triggering value
- Behavior: Choose "Show when true" or "Hide when true"
- Save your form
Understanding the Logic
Any Value + Show when true:
- Field shows when source field has any content
- Field hides when source field is empty
Exact Value + Show when true:
- Field shows when source field equals the specified value
- Field hides when source field has a different value or is empty
Any Value + Hide when true:
- Field hides when source field has any content
- Field shows when source field is empty
Exact Value + Hide when true:
- Field hides when source field equals the specified value
- Field shows when source field has a different value or is empty
Common Conditional Patterns
Show Follow-Up Questions
Scenario: Ask for details only when an issue is reported.
Setup:
- Create a Select field "Was any issue found?" with options: Yes, No
- Create a Textarea field "Describe the issue"
- Add condition to Textarea:
- Source Field: "Was any issue found?"
- Operator: Exact Value
- Value: "Yes"
- Behavior: Show when true
Result: The description field only appears when "Yes" is selected.
Show Section Based on Selection
Scenario: Show a complete safety section only for certain project types.
Setup:
- Create a Select field "Project Type" with options: Residential, Commercial, Industrial
- Create a Section "High-Risk Safety Checklist"
- Add condition to Section:
- Source Field: "Project Type"
- Operator: Exact Value
- Value: "Industrial"
- Behavior: Show when true
- Add safety-related fields inside the section
Result: The entire safety section only shows for Industrial projects.
Show Fields When Any Value Entered
Scenario: Show additional options only when a comment is provided.
Setup:
- Create a Textarea field "Comments"
- Create a Checkbox field "Flag for follow-up"
- Add condition to Checkbox:
- Source Field: "Comments"
- Operator: Any Value
- Behavior: Show when true
Result: The follow-up checkbox only appears when the user enters any comment.
Hide Fields Based on Selection
Scenario: Hide irrelevant fields based on a selection.
Setup:
- Create a Select field "Your Role" with options: Worker, Supervisor, Manager
- Create fields for worker-specific information
- Add condition to worker fields:
- Source Field: "Your Role"
- Operator: Exact Value
- Value: "Worker"
- Behavior: Hide when true
Result: Worker-specific fields are hidden when "Worker" is selected (only managers/supervisors see them).
Conditional Sections
Scenario: Show different sections for different inspection types.
Setup:
- Create Select "Inspection Type": Electrical, Plumbing, General
- Create Section "Electrical Checks":
- Condition: Source Field = "Inspection Type", Exact Value = "Electrical", Show when true
- Create Section "Plumbing Checks":
- Condition: Source Field = "Inspection Type", Exact Value = "Plumbing", Show when true
- Create Section "General Checks" (no condition - always shown)
Result: Users see only relevant inspection sections based on type.
Testing Conditional Logic
Preview Testing
- Click "Preview" in the form builder
- Fill in the source fields with different values
- Verify target fields show/hide correctly
- Test all possible combinations
- Check that required fields work correctly when hidden
Edge Cases to Test
- What happens when the source field is empty?
- Do hidden required fields block submission?
- Do conditions work with default values?
- Does multi-select trigger conditions correctly?
Note: Hidden fields are not submitted. If a field is hidden when the form is submitted, its value is not included in the submission data.
Troubleshooting
If conditions aren't working
- Check source field: Ensure you're referencing the correct field
- Verify operator: Use "Exact Value" for specific matches, "Any Value" for presence checks
- Check value format: For "Exact Value", the value must match exactly (case-sensitive)
- Test in preview: Use preview mode to test different scenarios
- Check show/hide setting: Make sure you have the correct behavior selected
If hidden fields are causing issues
- Hidden required fields don't block submission
- Hidden field values are not included in submissions
- Values entered before hiding are cleared when the field becomes hidden
If the condition doesn't trigger
- Ensure the source field has been filled in before the conditional field
- For "Exact Value", verify the value matches exactly (including capitalization)
- For "Any Value", any non-empty value should trigger the condition
Best Practices
- Keep it simple: Each field supports one condition
- Test thoroughly: Check all possible paths through your form
- Use sections: Apply conditions to sections to show/hide multiple related fields at once
- Consider the user flow: Place conditional source fields before their dependent fields
- Test on mobile: Verify hidden/shown fields work correctly on all devices
- Plan before building: Sketch out your conditional flow before implementing
What's Next
After setting up conditional logic, you may want to:
- Learn about Views to visualize submission data
- Set up Workflows for automated actions
- Configure Permissions for access control
- Review Submissions management

