Conditional Logic
On this page
Show or hide fields and pages based on respondent answers. Conditional logic lets you build smart forms that adapt to each person — asking follow-up questions only when relevant, skipping entire pages for certain user types, and routing respondents to different outcomes.
Conditional logic follows an if-then pattern:
- IF a condition is met (e.g., answer to Question 1 is "Yes")
- THEN perform an action (show a field, hide a page, etc.)
Every condition has three parts:
| Part | What It Does | Example |
|---|---|---|
| When | The field to watch | "How satisfied are you?" |
| Condition | The comparison to evaluate | "is less than" |
| Value | The trigger value | "3" |
-
1
-
2
-
3
-
4
A common pattern — ask detractors what you can improve, but skip the question for promoters.
Page-level conditions let you skip entire sections of a form based on earlier answers. This is more powerful than field-level conditions for major branching paths.
-
1
-
2
-
3
You have a multi-page intake form:
- Page 1: Contact info (always shown)
- Page 2: Employee details (benefits, department, start date)
- Page 3: Contractor details (company, rate, contract term)
Page 1 has a radio field: "Employment type" with options "Employee" and "Contractor".
Rule on Page 2: Show when "Employment type" equals "Employee"
Rule on Page 3: Show when "Employment type" equals "Contractor"
Employees see Page 2, contractors see Page 3. Neither sees the irrelevant page.
The form feels personalized — each respondent only sees questions relevant to their situation. The total form length is shorter, completion rates go up, and you collect exactly the data you need.
| Condition | Works With | Example |
|---|---|---|
| Equals | All fields | City equals "New York" |
| Not equals | All fields | Status not equals "N/A" |
| Contains | Text fields | Comment contains "urgent" |
| Greater than | Number, NPS, rating | Score > 7 |
| Less than | Number, NPS, rating | Score < 4 |
| Is empty | All fields | Email is empty |
| Is not empty | All fields | Phone is not empty |
You can add multiple rules to a single field or page:
All conditions must be true — the field shows only when every rule passes.
Use AND when you need to narrow down a specific scenario:
- Show "Enterprise contact form" when Plan equals "Enterprise" AND Company Size is greater than 100
Any condition can be true — the field shows when at least one rule passes.
Use OR when multiple triggers should show the same field:
- Show "Please explain" when Satisfaction is less than 3 OR Would Recommend equals "No"
Pattern: Satisfaction follow-up
Goal: Ask for details when someone gives a low rating.
- NPS/CSAT/CES score → show text field "What could we improve?" when score is low
- Radio "Was this helpful?" → show text field "How can we do better?" when answer is "No"
Pattern: Role-based branching
Goal: Show different pages or fields based on the respondent's role.
- Dropdown "Your role" → show Manager fields when "Manager", show Individual Contributor fields when "IC"
- Use page-level conditions for clean separation of content
Pattern: Progressive disclosure
Goal: Start simple, reveal complexity only when needed.
- Checkbox "I have additional requirements" → show a section of advanced fields
- Radio "Do you need a custom plan?" → show pricing contact form
- Test every path — preview your form and walk through every possible combination of answers. It's easy to miss edge cases.
- Use page conditions for major branches — show/hide entire pages for distinct user paths rather than hiding many individual fields on one page.
- Label your fields clearly — conditions read naturally when fields have descriptive labels: "When [Satisfaction] is [less than 3]" is clearer than "When [field_12] is [< 3]".
- Document your logic — for complex forms, keep a note of what triggers what. Your future self (and your team) will thank you.