What is conditional logic?
The easiest way to think about conditional logic is with if/then statements. If a user selects a certain option within your form, then they will be presented with an additional form when they click the “continue” button.
Respondents never have to skip irrelevant questions—because with conditional logic, they’ll never even see them.
How to set conditional logic
Applying conditional logic involves adding logical arguments that evaluate to either True or False. If the statement is True, the action is triggered. If the statement is False, the action will not be triggered.
Each condition is made up of three parts: the question, the rule and the value.
To show or hide specific forms, create conditions by clicking the + Add condition button.
- Choose if you want the form to be shown or hidden when the logic statements are True. (If no conditional logic has been added, the form will be shown by default.)
- Choose the question from your list of forms.
- Select a rule (is equal to, is any of, etc.)
- Select the value that should be compared to the answer given on the form.
- When more than one rule has been set you’ll need to decide if the condition is considered as met when All or Any of the rules are true.
You can click the “+Add condition” button to set more rules.
If you need to combine “All” and “Any” in a single set of conditions, you’ll need to create one or more conditional groups by clicking the “+ Add conditional group”.
When you’re first getting started with conditional logic, it’s probably easiest to start with ‘Is equal to’ responses since it’s the most straightforward.
Conditional logic is extremely versatile, but it can be a bit overwhelming to learn at first. If you’re having any trouble, feel free to ask for help by sending us an email at help@taktikal.com.
Examples
Let's start with the simplest example: One question, that's either a drop down or radio element. The form will only show if one specific option is chosen.
For example, if someone is requesting a pet insurance and would need to fill in certain information for a cat insurance, the logic on the cat insurance form will be set like this:
Show form
If ANY the following is true
“Do you have a cat or a dog?” is equal to ‘cat’.
Next: Conditional logic rules