Conditional logic in forms is a powerful feature that transforms how you interact with your forms. It enables you to automate actions within your forms based on specific conditions being met. These actions could include displaying custom messages, redirecting users to specific URLs, or disqualifying leads based on their responses.
You can easily manage and edit your conditions to build your form experience.
Step 1: Create or edit your form
- Go to Sites > Forms

- Create a new form or edit one you already have.

Step 2: Create your Conditional Logic
- Navigate to the Conditional Logic section, located under the Secondary Header bar in Form Builder.

- Select the type of logic you wish to configure:

- Redirect URL: You can add a URL you want to send them to if they meet that logic. For example, you can filter by phone number, and add a specific country code.

- Display a Custom Message: Filer as needed, and once submitted, if the lead matches the filters, it will show the message you added.

- Disqualify leads: If the leads meet the criteria, they will be disqualified.

- Show/Hide fields: This option allows you to show or hide fields based on your lead's answer.

- With this option, your lead will not see the “hidden” field until they have met the criteria. In this example, if they write in the City “New York,” then the Organization field will show up.


Note: All the fields you have added to the form are the ones that will show up in the filter options.

- Save your conditions and form, and witness the magic unfold.
Notes:
- Switching between ‘AND’ and ‘OR’ automatically updates all operations accordingly.
- Only relevant fields appear in your drop-downs, ensuring a clutter-free experience.
- Conditional logic takes precedence over on-submit messages or redirects, ensuring your rules are followed.
- Currently, we do not support checkbox and multi-select in conditional logic
Using Conditional Payment Elements
You can show or hide the payment element in forms based on conditional logic, providing greater flexibility and customization options.
How to Use Conditional Payment Elements:
1- Access the Form Builder
- Navigate to the form or survey you wish to edit within the Form Builder.
2- Add Conditional Logic
- Select the field you want to base the condition on (e.g., a question about subscription preferences etc).



- Define the condition that will trigger the visibility of the payment element (e.g., if the user selects "No" to a subscription question).

3- Show or Hide Payment Element
- Drag the payment element into your form where needed.
- Set the visibility of the payment element based on the defined condition. For example, show the payment field if the user selects "Yes" and hide it if they select "No".

4- Save and Test
- Save your form and test it to ensure the conditional logic works as intended. Make sure the payment element appears or disappears based on the user’s responses.
FAQ
- What is conditional logic in forms, and why is it useful?
- Conditional logic in forms allows you to create dynamic forms that change or adapt based on the user's input. This feature enhances the user experience by showing or hiding fields, redirecting to specific URLs, displaying custom messages, or disqualifying leads based on predefined conditions.
- Can I use conditional logic with any type of form field?
- Conditional logic supports most form fields, but currently does not support checkbox and multi-select fields. All other relevant fields added to your form will appear in the filter options for configuring conditions.
- How do I set up conditional payment elements in my form?
- To set up conditional payment elements, navigate to the Form Builder, select the form you wish to edit, and add conditional logic based on a specific field. Drag the payment element into your form and configure it to show or hide based on the user’s responses to the selected condition.
- What happens if my form has both conditional logic and on-submit actions?
- Conditional logic takes precedence over on-submit actions such as redirecting to a URL or displaying a message. This ensures that the conditional rules you set are prioritized and followed.
- Can I switch between 'AND' and 'OR' conditions in my logic settings?
- Yes, you can switch between ‘AND’ and ‘OR’ conditions in your logic settings, which automatically updates all operations accordingly, allowing for more precise control over how conditions are evaluated within your form.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article