Question Conditional Logic
Create smart surveys that adapt based on responses using conditional logic and skip rules
Conditional logic makes your surveys smarter by showing different questions based on how customers answer. This guide explains how to create dynamic, personalized survey experiences.
What Is Conditional Logic?
Conditional logic shows or hides questions based on previous answers.
Example:
- Ask: "Was this your first visit?"
- If "Yes" → Show: "How did you hear about us?"
- If "No" → Show: "How many times have you visited?"
This keeps surveys relevant and prevents asking unnecessary questions.
Benefits of Conditional Logic
Shorter, Smarter Surveys
- Only ask relevant questions
- Skip irrelevant sections
- Reduce customer burden
- Increase completion rates
Better Data Quality
- More targeted questions
- Context-specific feedback
- Fewer "N/A" or skipped responses
- More actionable insights
Personalized Experience
- Surveys feel conversational
- Customers see only what matters to them
- Shows you understand their situation
How Conditional Logic Works
Basic Structure
IF [Question X] [Condition] [Value] THEN [Show/Hide] [Question Y]
Example Flow
- Customer answers Q1: "NPS Score: 6"
- System checks: "Is score ≤ 6?" → Yes
- Shows Q2: "What disappointed you?"
- Skips Q3: "What did we do best?" (only for promoters)
Setting Up Conditional Logic
Step 1: Create Your Questions
First, add all questions you'll use:
- Main question (the trigger)
- Conditional questions (shown based on answers)
Example:
- Q1: "How satisfied were you?" (CSAT 1-5)
- Q2: "What disappointed you?" (Text - for low scores)
- Q3: "What did we do well?" (Text - for high scores)
Step 2: Add Logic to Conditional Questions
- Click the question you want to make conditional
- Expand Advanced Settings
- Toggle Enable Conditional Logic
- Configure the condition (see below)
- Click Save
Step 3: Configure the Condition
Set three parts:
1. Trigger Question: Which question to check 2. Condition: The comparison rule 3. Value: What to compare against
Step 4: Test It
- Click Preview to test your survey
- Answer the trigger question with different values
- Verify the conditional questions appear/disappear correctly
Condition Types
For NPS/CSAT/CES/Rating Questions
Available conditions:
- Is equal to
- Is not equal to
- Is greater than
- Is greater than or equal to
- Is less than
- Is less than or equal to
Examples:
Show follow-up for detractors:
- IF "NPS Score" is less than or equal to "6"
- THEN show "What disappointed you?"
Show follow-up for promoters:
- IF "NPS Score" is greater than or equal to "9"
- THEN show "What did we do best?"
Show follow-up for very satisfied:
- IF "CSAT Score" is equal to "5" (😀)
- THEN show "Would you write us a review?"
For Multiple Choice Questions
Available conditions:
- Is
- Is not
- Is any of
- Is none of
Examples:
Show service-specific question:
- IF "Which service?" is "Dental Cleaning"
- THEN show "Was this your regular 6-month cleaning?"
Show location-specific question:
- IF "Which location?" is "Toronto"
- THEN show "Did you have trouble finding parking?"
Show for multiple options:
- IF "Which service?" is any of ["Whitening", "Cosmetic"]
- THEN show "Are you happy with the appearance?"
For Yes/No Questions
Available conditions:
- Is Yes
- Is No
Examples:
First-time visitor flow:
- IF "Was this your first visit?" is Yes
- THEN show "How did you hear about us?"
Returning customer flow:
- IF "Was this your first visit?" is No
- THEN show "How many times have you visited us?"
Issue resolution:
- IF "Was your issue resolved?" is No
- THEN show "What's still outstanding?"
For Checkbox Questions
Available conditions:
- Includes
- Does not include
- Includes any of
- Includes all of
Examples:
Selected specific feature:
- IF "Which features do you use?" includes "Mobile App"
- THEN show "How would you rate the mobile app?"
Didn't select feature:
- IF "Which features do you use?" does not include "Reports"
- THEN show "Why don't you use the reports feature?"
For Text/Email/Phone Questions
Available conditions:
- Is filled
- Is empty
- Contains
- Does not contain
Examples:
Email provided:
- IF "Email address" is filled
- THEN show "May we email you about promotions?"
Mentioned specific keyword:
- IF "Comments" contains "price"
- THEN show "What pricing would be fair?"
For Number Questions
Available conditions:
- Is equal to
- Is not equal to
- Is greater than
- Is less than
- Is between
Examples:
Frequent visitors:
- IF "How many visits?" is greater than "5"
- THEN show "Would you like a loyalty discount?"
Visit range:
- IF "How many visits?" is between "2" and "5"
- THEN show "What brings you back?"
For Date Questions
Available conditions:
- Is before
- Is after
- Is between
- Is within last [X] days
Examples:
Recent customer:
- IF "First visit date" is within last "30 days"
- THEN show "Are you satisfied with your onboarding?"
Long-time customer:
- IF "First visit date" is before "2024-01-01"
- THEN show "What keeps you coming back?"
Advanced Conditional Logic
Multiple Conditions (AND/OR)
Show a question only if multiple conditions are met:
AND logic (all must be true):
- IF "NPS Score" is less than "7"
- AND "Was this your first visit?" is "No"
- THEN show "Why are you less satisfied than before?"
OR logic (any can be true):
- IF "Which service?" is "Whitening"
- OR "Which service?" is "Cosmetic"
- THEN show "Are you happy with the appearance?"
Nested Conditional Logic
Create complex flows with multiple levels:
Level 1:
- Q1: "Was this your first visit?" → Yes/No
Level 2 (depends on Q1):
- IF Q1 is "Yes" → Q2: "How did you hear about us?"
- IF Q1 is "No" → Q3: "How many times have you visited?"
Level 3 (depends on Q3):
- IF Q3 is greater than "10"
- THEN Q4: "Would you like to be a VIP member?"
Skip Logic
Jump to different parts of the survey:
- Set up conditional logic to show/hide sections
- Group related questions under section headers
- Show entire sections based on answers
Example: Service-specific sections
- Q1: "Which service?" → Cleaning / Filling / Whitening
- IF "Cleaning" → Show "Cleaning Questions" section
- IF "Filling" → Show "Filling Questions" section
- Skip irrelevant sections
Position & Department Conditions
Special conditional logic for employee-specific surveys:
Position-Based Questions
Show questions only for certain employee positions:
Setup:
- Create employees with positions (Dentist, Hygienist, Receptionist)
- Add conditional question
- Set condition: "Employee Position" is "Dentist"
Example:
- IF employee position is "Dentist"
- THEN show "Did the dentist explain the procedure clearly?"
Department-Based Questions
Show questions only for certain departments:
Setup:
- Create departments (Clinical, Front Desk, Management)
- Add conditional question
- Set condition: "Employee Department" is "Clinical"
Example:
- IF employee department is "Front Desk"
- THEN show "Was check-in efficient?"
Learn more in the Employees documentation.
Best Practices
Keep It Simple
Good:
- Single condition per question
- Clear trigger → response flow
- Maximum 2-3 levels of nesting
Avoid:
- Complex multi-condition logic
- Circular references (Q2 shows Q3, Q3 shows Q2)
- More than 3 levels of nesting
Test Thoroughly
Before sending:
- Test all paths: Answer trigger questions with every possible value
- Verify hiding: Ensure questions hide when they should
- Check mobile: Test on phone (tap targets, scrolling)
- Edge cases: Test with extreme values, empty responses
Provide Context
When using conditional logic:
- Don't assume context: Each question should make sense on its own
- Repeat key info: "You mentioned you're a first-time visitor..."
- Use clear language: Don't rely on previous question being visible
Avoid Dead Ends
Ensure every path leads to completion:
❌ Bad: Question only appears for promoters, but it's required → Detractors can't complete survey
✅ Good: Make conditional questions optional, or provide alternative paths
Document Complex Logic
For surveys with complex conditional flows:
- Create a flowchart: Map out all possible paths
- Add internal notes: Document why logic exists
- Test with team: Have colleagues walk through all scenarios
Examples by Use Case
Example 1: Post-Service Dental Survey
Q1: "How satisfied were you with your visit?" (CSAT 1-5)
Q2 (if CSAT ≤ 3):
- "What could we have done better?" (Text)
Q3 (if CSAT ≥ 4):
- "What did we do well?" (Text)
Q4 (if CSAT = 5):
- "Would you write us a Google review?" (Yes/No)
Q5 (if Q4 = Yes):
- Shows review request link
Example 2: First-Time vs Returning Customer
Q1: "Was this your first visit?" (Yes/No)
Q2 (if Q1 = Yes):
- "How did you hear about us?" (Multiple Choice)
Q3 (if Q1 = No):
- "How many times have you visited?" (Number)
Q4 (if Q3 > 5):
- "Would you like to join our loyalty program?" (Yes/No)
Example 3: Service-Specific Feedback
Q1: "Which service did you receive?" (Multiple Choice)
Q2 (if Q1 = "Whitening"):
- "Are you happy with the shade achieved?" (Rating)
Q3 (if Q1 = "Filling"):
- "Is the filling comfortable?" (Yes/No)
Q4 (if Q1 = "Cleaning"):
- "Was this your regular 6-month cleaning?" (Yes/No)
Example 4: Issue Resolution
Q1: "Did we resolve your issue?" (Yes/No)
Q2 (if Q1 = No):
- "What's still outstanding?" (Text)
Q3 (if Q2 is filled):
- "Would you like us to follow up?" (Yes/No)
Q4 (if Q3 = Yes):
- "Best phone number to reach you?" (Phone)
Troubleshooting
Question Doesn't Appear
Check:
- Is conditional logic enabled?
- Is the condition correctly configured?
- Did you answer the trigger question?
- Is the trigger question visible (not hidden by its own logic)?
Question Always Appears
Check:
- Is "Show by default" toggled on?
- Is the condition inverted (is vs is not)?
- Are you testing with the right trigger value?
Logic Doesn't Work on Mobile
Check:
- Preview on actual mobile device
- Ensure questions load in correct order
- Verify JavaScript isn't blocked
Circular Logic Error
Problem: Q2 depends on Q3, Q3 depends on Q2
Solution: Restructure logic to be linear (Q1→Q2→Q3)
What's Next?
Now that you understand conditional logic:
- Preview your logic - Test all paths thoroughly
- Reorder questions - Organize conditional flows
- Create sequences - Automate conditional survey sending
- Set up position filters - Use employee-based conditions
Common Questions
Can I have multiple questions depend on the same trigger? Yes! Multiple questions can all check the same trigger question with different conditions.
What happens if I delete a trigger question? All conditional logic referencing it will break. You'll need to reconfigure or remove the conditions.
Can I use conditional logic with all question types? Yes, but some combinations work better than others. Number/rating/multiple choice are easiest to work with.
Will customers see the hidden questions? No, hidden questions are completely invisible until their condition is met.
Ready to create intelligent, adaptive surveys? Start adding conditional logic! 🧠
// Related articles
Adding and Editing Questions
Learn how to add, edit, configure, and manage questions in your surveys
Understanding Question Types
Explore all 9 question types in demeterrr and learn when to use each one
Preview Mode
Validate survey content, flow, and conditional logic before sending
Was this article helpful?
Let us know if you found this article helpful or if you need more information.
Join hundreds of businesses already using demeterrr to collect feedback, boost reviews, and grow faster.
Start Your Trial