Using and/or with Logic
When setting up your Logic, make sure you use and/or correctly, or your form might not work correctly. This article gives you an example and explains how to use and/or.
Here’s a common mistake with and/or
This form asks ‘Are you a cat or a dog person?’. The answer will send them down different logic paths, and later we ask both groups ‘So now, pineapples on your pizza?’.
From question 4, we want to send people to different custom Ending Screens.
If you’re a cat person who likes pineapple on pizza you see this.
If you’re a dog person who likes pineapple on pizza you see this.
But if you’re either a dog or a cat person who doesn’t like pineapple on pizza, we want to show this.
On the pizza question, there are three logical conditions, sending respondents to the Ending screens. The first two work.
But the last condition cannot be satisfied, and will break your typeform! Why? Because it’s impossible for someone to have answered Cat and Dog to the question ‘Are you a cat or a dog person?’. Have a look.
The solution is to use or instead of and.
In this way, people who like Cats or Dogs and don’t like pineapple on pizza will see the Ending Screen ‘OK, how about pickles on pizza?‘.