Quick Answer
What can conditional logic do in a form?
Conditional logic lets your form react to user input. You can redirect visitors, display custom messages, disqualify leads, show or hide fields, and control payment elements based on the answers they provide.
Building Forms That Adapt to Each User's Input
Not every person completing a form needs to see the same fields or follow the same path.
Conditional logic allows a form to react to input by showing or hiding fields, redirecting users, displaying different messages, disqualifying leads, or controlling payment elements.
Without logic, forms can feel longer and less relevant, which can reduce completion rates.
Conditional logic helps guide visitors toward the appropriate outcome based on what they choose or enter.
Follow along
Open your form in Sites → Forms → Builder, add your logic rules, then test each path in Preview.
Conditional Logic at a Glance
Before You Begin
Open an existing form or create a new one in Sites → Forms → Builder.
- Add the fields you need, including any qualifying question you want to use as the basis for a logic rule.
- Save the form before configuring and testing the logic.
Step 1: Create or Edit Your Form
Open Forms
Go to Sites → Forms.
Open the Builder
Create a new form or open an existing form in the Builder.
Add the Fields
Add the fields you need, including any qualifying question you want to use for conditional logic.
Save the Form
Click Save.
Step 2: Add Conditional Logic Rules
Open the logic settings and create conditions based on the value of a form field, then choose the outcome you want.
Redirect URL
Send users to a specific page when a condition is met.
Display Custom Message
Show a tailored message based on the user's response.
Disqualify Leads
Disqualify a lead based on predefined answers.
Show or Hide Fields
Reveal or hide form fields dynamically based on responses.
Conditional Payments
Show or hide payment elements based on the visitor's selection.
Example
If “Are you a business owner?” equals Yes, show the “Business Name” field. If the answer is No, hide the field or redirect the visitor to another page.
Logic can override on-submit actions
Conditional logic can take precedence over on-submit actions such as redirects or thank-you messages when the condition is triggered.
How to Use Conditional Payment Elements
Conditional payments can be used when payment should only appear for certain responses, such as when a visitor chooses an additional paid option.
Step 1: Open the Form Builder
Open your form in the Form Builder.
Step 2: Select the Trigger Field
Select the field you want to use for the condition, such as a dropdown or radio option.
Step 3: Create the Condition
Create a condition based on the required response, such as the response equaling Yes.
Step 4: Add the Payment Element
Add the payment element to the form.
Step 5: Control Visibility
Configure the payment element to show or hide based on the condition.
Step 6: Save and Test
Save the form and test the complete flow in Preview.
Test both responses
Submit mock data using both the triggering and non-triggering answers to confirm that the payment element appears and hides correctly.
Best Practices & Notes
Frequently Asked Questions
What is conditional logic in forms, and why is it useful?
Conditional logic lets your form react to user input (show/hide fields, redirect, display messages, or disqualify leads), creating a more relevant and streamlined experience.
Can I use conditional logic with any type of form field?
Conditional logic works with most form fields, but checkbox and multi-select fields are not supported.
How do I set up conditional payment elements in my form?
Create a condition based on a field (like a Yes/No choice) and configure the payment element to show or hide depending on the response.
What happens if my form has both conditional logic and on-submit actions?
Conditional logic takes precedence over on-submit actions such as redirects or thank-you messages.
Can I switch between AND and OR conditions in my logic settings?
Yes. Switching between AND and OR updates the logic operations to match your selected rule type.
Continue Learning
Continue with related Forms guides for building forms, testing conditional paths, and working with payment elements.


