A one-size-fits-all survey frustrates respondents and produces weak data. Someone who answered “No” to “Are you a current customer?” should not see follow-up questions about their account manager. Someone who rated your service 9 out of 10 should not get the same open-ended complaint field as someone who rated it 2.
Branching logic — also called skip logic or conditional questions — solves this by showing only the questions relevant to each respondent’s answers. In Auto Form Builder, branching logic is built into every field through Conditional Logic settings that show or hide fields dynamically on the frontend.
Last updated: Last update 22 August
Branching logic routes respondents through different question paths based on their previous answers. Instead of presenting every question to every person, the form adapts in real time:
In Auto Form Builder, field-level branching uses show/hide conditional logic on individual fields. Form-level branching uses conditional confirmation rules to change what happens after submission.
Auto Form Builder includes field types well suited for surveys:
Place branching trigger questions (radio, dropdown, checkbox, or number) early in the form, then attach conditional logic to the follow-up fields that depend on those answers.
Every field in Auto Form Builder includes a Conditional Logic section in its settings panel. When enabled, you define rules that control whether the field is visible:
Each rule specifies:
Combine multiple rules with:
On the frontend, conditional logic runs in JavaScript as the respondent answers questions. Fields hidden by logic have their inputs disabled so they are not submitted. Hidden required fields are also skipped during server-side validation — respondents are never blocked by questions they could not see.
The engine supports chained branching — when Field A controls Field B, and Field B controls Field C, multi-pass evaluation resolves the full chain automatically.
Auto Form Builder supports eight operators for branching rules:
For radio and dropdown fields, use the option’s value (not the display label) in your condition. You can view and edit option values in the field settings.
This example creates a survey that branches based on whether the respondent is a customer and how they rate the service.
Add a Radio Buttons field labeled “Are you a current customer?” with options:
Add fields only existing customers should answer:
On each customer-only field, open settings, enable Conditional Logic, and add a rule:
Add a field for non-customers:
Enable conditional logic:
Add two follow-up fields after the rating question:
Set conditional logic on the improvement question:
Set conditional logic on the praise question:
Insert HTML Block fields between question groups for section titles like “Customer Feedback” or “Tell Us About Yourself.” HTML blocks display instructions without creating submission data.
Go to the form’s Settings tab → Submission Behavior → Conditional Confirmations. Add rules so different respondents see different endings:
The first matching rule wins. If no rule matches, the default success message is shown.
Save the form and test each path: customer with high score, customer with low score, and non-customer. Confirm that hidden questions do not appear and that required fields on hidden branches do not block submission.
Start with a qualifying question (radio or dropdown). Show the main survey only to qualified respondents. Show a “Thank you, this survey is not for you” HTML block or redirect non-qualified respondents using conditional confirmations.
Ask “Which product did you use?” (dropdown). Branch follow-up questions per product. Use Contains on checkbox fields for “Which features did you use?” to show feature-specific rating questions.
Use number fields with sliders for satisfaction scales (1–5 or 1–10). Branch open-ended follow-ups with Less than or Greater than operators. Randomize radio option order to reduce order bias.
Ask “Did you attend in person or virtually?” (radio). Show venue-specific questions for in-person attendees and platform-specific questions for virtual attendees. Use conditional confirmation emails to send different thank-you messages per attendance type.
Use checkbox multi-select for “Which categories interest you?” Branch entire question sections with Contains conditions — show the tech section if “technology” is checked, show the health section if “health” is checked. Use OR logic when a section should appear if any of several categories are selected.
Example: Show “Account manager feedback” only if the respondent is a customer AND selected “Enterprise” plan.
Example: Show “Complaint details” if the rating is low OR the respondent selected “Unsatisfied.”
Field-level logic controls which questions appear. Form-level conditional rules control what happens after submission — extending branching to the survey ending:
Under Settings → Submission Behavior → Conditional Confirmations, define rules that change the success message or redirect URL based on answers. First matching rule wins.
Under Settings → Email Notifications → Conditional Notification Rules, route submissions to different team members based on answers — send product feedback to product@ and billing issues to finance@.
Under Settings → User Confirmation Email → Conditional Confirmation Email Rules, send different thank-you emails to respondents based on their survey path.
Every submission — including only the questions the respondent actually saw — is stored in your WordPress database. View entries at Auto Form Builder → Submissions with search, form filters, date filters, and status management (unread, starred, read, spam, trash).
Export submission data in CSV, JSON, XLSX, or XML for analysis in spreadsheets or BI tools. Hidden-branch responses appear blank for questions the respondent did not see — which is expected and correct for branching survey analysis.
Enable admin email notifications for instant alerts on high-priority branches (for example, low satisfaction scores routed via conditional notification rules).
Branching logic shows or hides survey questions based on a respondent’s previous answers. In Auto Form Builder, this is implemented through Conditional Logic on individual fields, which dynamically controls visibility as the user fills out the form.
Select the follow-up field in the form builder, open its settings, enable Conditional Logic, and add a rule such as “Show this field if [trigger field] Equals [value].” Save the form and test each branch path.
Yes. Set Logic Type to “All conditions must be met (AND)” when every rule must be true, or “Any condition can be met (OR)” when at least one rule is enough. You can add multiple conditions per field.
No. Fields hidden by conditional logic have their inputs disabled and are excluded from submission. Required validation is skipped for hidden fields, so respondents are never blocked by questions they could not see.
Yes. Use Conditional Confirmations in form Settings to show different success messages or redirect to different URLs based on submitted answers. The first matching rule wins.
Radio buttons and dropdowns are ideal for single-choice branching. Number fields work well for score-based branching with greater-than and less-than operators. Checkbox groups work with the Contains operator for multi-select branching.
Build surveys that adapt to each respondent — show the right questions, skip the irrelevant ones, and end with the right message. Conditional logic, rating fields, section headers, and conditional confirmations are included in the free plugin.
Download: Plugin last updated: Last update 22 August Auto Form Builder lets you create multi-step forms, calculators, and lead capture forms in WordPress, then embed them on any site with a single line of code.How to Build Survey Forms with Branching Logic
What Is Branching Logic in Surveys?
Survey Field Types for Branching
How Conditional Logic Works
Available Condition Operators
Step-by-Step: Build a Customer Satisfaction Survey with Branching
Step 1: Add the screening question
yes)no)Step 2: Add customer-only questions
yesStep 3: Add prospect-only questions
noStep 4: Branch on the NPS score
7yes
8yesStep 5: Add section headers with HTML Blocks
Step 6: Set conditional thank-you messages
8 → Show message: “Thank you! Would you leave us a review?”7 → Show message: “Thank you for your honest feedback. Our team will follow up shortly.”Step 7: Save and test every branch
Branching Patterns for Common Survey Types
Screening survey
Product feedback survey
Employee engagement survey
Event feedback survey
Market research survey
AND vs OR: Choosing the Right Logic Type
Use AND when every condition must be true
yesenterpriseUse OR when any condition is enough
4unsatisfiedForm-Level Branching: Conditional Confirmations and Emails
Conditional Confirmations
Conditional Notification Rules
Conditional Confirmation Email Rules
Collecting and Analyzing Branching Survey Data
Best Practices for Survey Branching Logic
yes and no instead of relying on auto-generated slugsCommon Branching Logic Mistakes
Frequently Asked Questions
What is branching logic in a survey form?
How do I add branching logic to a survey in Auto Form Builder?
Can I use AND and OR conditions in survey branching?
Are hidden survey questions still required?
Can I branch to different thank-you pages based on survey answers?
Which field types work best as branching triggers?
Get Started with Auto Form Builder
Auto Form Builder on WordPress.org
Build forms that embed anywhere — free
Table of Contents
Table of Contents
Learn the difference between AND and OR logic in form conditions. Create complex conditional rules that show fields based on multiple criteria.
Learn how to create percentage input fields in WordPress forms for surveys and ratings. Collect satisfaction scores, completion rates, and allocation percentages.
Learn how conditional logic improves form conversion rates. Discover why shorter, personalized forms get more completions and better quality leads.
Learn how to create rating scales, satisfaction surveys, and NPS forms using radio buttons in WordPress. Step-by-step guide with examples.
Learn conditional logic best practices for WordPress forms. Create better user experiences by showing relevant fields and hiding unnecessary ones.
Learn how to create a quote request form with conditional logic in WordPress. Build dynamic forms that show relevant questions based on service selection.
Discover why conditional logic is essential for WordPress forms. Boost conversions, collect better data, and create personalized user experiences.
Learn how to build a feedback form with star ratings and scales in WordPress. Collect customer opinions and measure satisfaction effectively.
Discover the best WordPress form plugins with conditional logic. Compare features, pricing, and ease of use to find the right dynamic form solution.
Learn what conditional logic is and how it works in WordPress forms. Understand how smart forms show and hide fields based on user responses.