Smart forms adapt to each visitor. A business contact form should ask for a company name only when someone selects “Business.” A support form should route urgent tickets differently from general inquiries. A survey should reveal follow-up questions only when specific answers are chosen. Auto Form Builder includes conditional logic with full AND and OR support — on individual fields and on form-level rules for emails and confirmations. Combine multiple conditions, choose how they interact, and build dynamic WordPress forms without code. Last updated: Last update 20 August When you add more than one condition to a rule, you choose how those conditions combine: With AND logic (labeled “All conditions must be met (AND)” in field settings, or “all” in form rules), every condition must be true for the rule to trigger. Example: Show the “Tax ID” field when Country equals USA AND Account Type equals Business. Both must be true — if only one matches, the field stays hidden. With OR logic (labeled “Any condition can be met (OR)” in field settings, or “any” in form rules), only one condition needs to be true for the rule to trigger. Example: Show the “Please specify” text field when Reason equals Other OR Reason equals Not listed. Either answer reveals the field. Auto Form Builder uses AND/OR logic in two places: Control whether individual fields are shown or hidden based on other field values. Configure this in the field properties panel when editing a form. Control what happens after submission based on the visitor’s answers. Configure these in the form’s Settings tab: Each form-level rule has its own set of conditions combined with AND or OR. When multiple rules exist, they are checked from top to bottom — the first matching rule wins. Every condition compares a form field to a value using one of these operators: Comparisons are case-insensitive. Checkbox groups, multi-select dropdowns, and radio buttons are supported — selected values are evaluated correctly against your conditions. Use field-level conditional logic to show or hide fields dynamically while the visitor fills out the form. Conditions within a field are separated visually by AND or OR labels, matching your chosen logic type. In Form Settings → Conditional Notification Rules: In Form Settings → Conditional Confirmations: You cannot mix AND and OR within a single condition group — each field or form rule uses one logic type for all its conditions. To combine both, use multiple rules evaluated in order. Rule 1 (AND): If Department equals Sales AND Budget greater than 10000 → send to Rule 2 (OR): If Department equals Sales OR Department equals Partnerships → send to Default: If no rule matches → use the standard notification email. Rules are checked from top to bottom. Rule 1 is evaluated first — if it matches, Rule 2 is never checked. Order your rules from most specific to most general. Field-level conditional logic runs in real time as visitors interact with your form: Form-level rules (confirmations and emails) are evaluated on the server when the form is submitted, using the same operators and AND/OR logic. For post-submission behavior — confirmations and emails — use the conditional rules editor in Form Settings. Each rule can be expanded, duplicated, or removed independently. When multiple rules exist, a hint reminds you that rules are checked from top to bottom and the first match is used. AND/OR conditional logic for fields, confirmations, and emails is included in the free Auto Form Builder plugin — no add-on or subscription required. Install from WordPress.org: https://wordpress.org/plugins/auto-form-builder/ Last updated: Last update 20 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. AND requires every condition in a group to be true before the rule triggers. OR requires only one condition to be true. In Auto Form Builder, choose “All conditions must be met (AND)” or “Any condition can be met (OR)” in field settings, or “all” / “any” in form-level rules. Yes. Enable Conditional Logic on any field, add as many conditions as you need, and choose AND or OR to control how they combine. Rules are evaluated from top to bottom. The first rule whose conditions match (using its AND or OR logic) is applied. If no rule matches, the form’s default settings are used. No. Required fields hidden by conditional logic are disabled and excluded from validation, so they cannot prevent submission. Equals, Not equals, Contains, Doesn’t contain, Greater than, Less than, Is empty, and Is not empty. Comparisons are case-insensitive. Yes. Form Settings supports conditional confirmations (success messages and redirects), conditional admin notification rules, and conditional user confirmation email rules — each with AND/OR condition groups. Yes. Dropdowns, radio buttons, checkboxes, and multi-select fields are all supported. Selected values are evaluated correctly against your conditions. Yes. Field-level AND/OR conditional logic and form-level conditional rules for confirmations and emails are included in the free Auto Form Builder plugin.Using Multiple Conditions: AND vs OR Logic in Forms
Understanding AND vs OR Logic
AND Logic — All Conditions Must Be Met
OR Logic — Any Condition Can Be Met
Quick Comparison
Logic Type
When It Triggers
Best For
AND (all)
Every condition must match
Precise, narrow rules — “only when A and B and C”
OR (any)
At least one condition must match
Broader rules — “when A or B or C”
Where AND/OR Logic Applies in Auto Form Builder
1. Field-Level Conditional Logic
2. Form-Level Conditional Rules
Available Condition Operators
Setting Up AND/OR Logic on Fields
Practical AND Logic Examples
Show a Company Field for Business Customers in the US
Reveal Budget Field for High-Value Enterprise Leads
Route Urgent Support Tickets to a Priority Inbox
[email protected]Practical OR Logic Examples
Show “Other” Text Field for Multiple Selections
Display Phone Field for Preferred Contact Methods
Redirect Premium Users to a VIP Thank-You Page
https://example.com/vip-thank-youCombining AND and OR Across Multiple Rules
Example: Route Emails by Department and Priority
[email protected][email protected]How Conditional Logic Works on the Frontend
Setting Up AND/OR Logic in Form Settings
Tips for Building Effective Conditional Logic
Get Started with Free Conditional Logic
Build forms that embed anywhere — free
Frequently Asked Questions
What is the difference between AND and OR in form conditional logic?
Can I add multiple conditions to one field?
What happens when multiple form-level rules exist?
Do hidden required fields block form submission?
Which operators can I use in conditions?
Can conditional logic control emails and redirects?
Does conditional logic work with dropdowns and checkboxes?
Is conditional logic included in the free plugin?
Table of Contents
Table of Contents
Learn how to create dynamic surveys with branching logic. Show different questions based on previous answers for better survey experiences.
Learn how conditional logic improves form conversion rates. Discover why shorter, personalized forms get more completions and better quality leads.
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.
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.