Conditional logic allows you to show or hide specific fields based on user responses to multi-choice questions.
This feature is particularly useful when you want to guide users through a form or show different information based on their answers.
Understanding conditional logic with multi-choice questions
You can create different types of logic based on how users answer multi-choice questions.
Here are two common scenarios:
Scenario 1: Multiple conditions must be met (And logic)
If the user selects both option A and option B, then show a specific field (e.g., an email field).
Scenario 2: Different conditions lead to different results (Or logic)
If the user selects option A Or Option B, show one field.
If the user selects option C, show another field.
Each of these rules results in different outcomes based on how users interact with the form.
Example 1 — Using And logic for multi-choice questions
In this example, we'll create a scenario where both conditions must be true to show a field:
Add a multi-choice question
Let's say the question is: "Which two services are you interested in?"
Options: Service A, Service B, Service C.
Set up logic using And conditions
If the user selects both Service A and Service B, you want to show the email field.
Configure the logic:
Condition 1: If the answer is Service A,
And condition: If the answer is Service B,
Result: Show the email field.
By applying this logic, the email field will only appear when both conditions (Service A and Service B) are selected.
Example 2 — Using Or logic for multi-choice questions
In this example, different answers will trigger different fields:
Add a multi-choice question
The question is: "What is your preferred contact method?"
Options: Email, Phone, Social Media.
Set up logic using Or conditions:
Condition 1: If the answer is Email, Or If the answer is Phone, show the Long text field.
Condition 2: If the answer is Social Media, show the social media handle field.
Each response triggers a different field based on the user's selection.
🌟 Pro tip:
When writing the logic, it is important to consider that the logic rules should not overlap with each other, and for different scenarios, avoid using the same logic.
📝 Additional insights:
Summary of key logic types
And logic: Use when multiple conditions must be met for a specific action (e.g., showing a field).
Or logic: Use when different responses trigger different actions (e.g., showing specific fields based on individual answers).
Implementing conditional logic in your form
Go to the logic tab:
In the form editor, click on the logic tab for the multi-choice question.Add conditions:
Create the conditions based on the user’s answers:For And logic, ensure that multiple conditions are required to show a field.
For Or logic, set individual conditions for each option to show the corresponding field.
Test the logic:
Preview the form to make sure the correct fields are shown or hidden based on the conditions
Using conditional logic with multi-choice questions helps you create dynamic and personalized form experiences for users, guiding them to the relevant sections based on their input.