Learn how Logic Jump behaves
Logic Jump is our tool for making typeforms more intelligent. It allows you to add question branching and question jumping—so your typeform responds to how people answer. It can make designing your typeform more complicated, but once you’ve got the hang of it, you’ll be making things that are much smarter and reactive.
Logic Jump means some questions will be hidden from some respondents.
When you apply Logic Jump to your typeforms, respondents will no longer be able to scroll down and see all your questions. But they haven’t disappeared, don’t worry! Logic Jump makes your typeform dynamic, meaning later questions will not appear until the earlier trigger question has been answered.
Let’s look at an example:
When you open this typeform, you’ll see the first two questions, but the third is hidden. We’ve added Logic Jump to question 2, which means it will only appear if question 2 is answered “Blueberries” or “Apple”. If a respondent answers “Mango”, they’ll go directly to the end of the survey:
Be careful how you order your Logic Jumps!
It’s important to understand how Logic Jump works. If you set multiple conditions on a Logic Jump, they will be activated in order. So, if the first condition is met, the following Logic Jumps will be ignored.
Let’s say you have a multiple choice question where respondents can pick more than one answer. If the answer is Mango, I want them to be sent to question 3, and if it’s Mango and Apple, to question 4.
To make this work, we must put the condition If “What is your favorite fruit is Apple AND Mango Jump to question 4.” first. Then add If “what is your favorite fruit is Mango Jump to question 3”:
If we reversed this order, when someone chose Mango and Apple, they’d be sent to question 3 instead of question 4, as that choice activates the Mango logic jump first, so ignores the second one.
Therefore, if you want to set Logic Jumps for multiple and single selections, make sure to set the multiple selections first.
See this in action:
How to set Logic Jump when “Other” is chosen.
If you have an ‘Other’ option on a multiple choice question, respondents can type whatever they want as an answer. This makes setting Logic Jump tricky – how can you tell your form how to react to an answer you can’t predict?
Here’s how to set Logic Jump when that happens.
To set a Logic Jump that responds when someone chooses “Other” from a Multiple choice question, we set logic for every answer except Other. It looks like this:
Logic is set up so it activates when someone doesn’t choose any of the predefined options… meaning they must have chosen Other. Simple, right?
Here’s an example typeform for you to try out. Choose Other, and type an answer. You’ll be taken to a Statement that you only see when choosing Other:
“In ALL other cases jump to”
All questions can have an “In All other cases jump to” field. This tells your typeform what to do if none of your Logic Jumps are activated by a respondent’s answer. You can use this to send people to a specific next question if they don’t give an answer.
With the above typeform, you’ll see question 1 and 2 initially. As question 2 has Logic Jumps covering all possible outcomes, question 3 will be hidden, unless respondents answer correctly. The “In ALL other cases Jump to” Logic Jump makes question 4 visible.
Here’s the full Logic Jump with “In All other cases”:
When the respondent is on question 2, simply scrolling past it will reveal question 4.
Try it out here:
Make a Typeform to obtain either email or phone number data.
Let’s say you want to build a form where you’d like to collect an email or a phone number, or both, but not neither. Here’s how to set that up:
- These are the questions in Build, with the logic map displayed:
- Here is the logic set on Q2 “phone number?”:
Here we are using If… OR … then jump to…
Adding In ALL other cases Jump to allows us to send respondents to a Statement telling them to answer either question 1 or 2. As you can see from the Logic map above, this statement returns people to question one so they can try again!
See this typeform in action:
Setting logic that requires specific answers to more than one question.
You can use Logic Jump to trigger paths when combinations of different questions are answered.
In this example, we have two questions about animals. If you get both questions wrong, you see one message. If you get the first wrong and the second right, you see another message. And if you just get the second right, you see a third message. Getting both answers correct completes the quiz.
Here is the basic build:
We added Logic Jump to question 2. This sends respondents to different Statements depending on their combined answers:
Try out the typeform to see for yourself:
This is a very simple example, but you can use this idea to branch typeforms by making combinations of previous answers.
Here are a couple of extra points worth remembering!
- You can only use Logic Jumps to send respondents backwards to questions they have already answered. If you want to send them to new questions, these must be ahead of the current question in Build.
- Logic Jump automatically renumbers questions, so they appear natural to respondents. This means the numbers you see in Build and on the actual typeform may be different, but don’t worry!
- In terms of saving results, only selected answers are recorded when respondents click Submit. So if you use Logic Jump to ask respondents to repeat questions, the earlier answers won’t be recorded. You can get around this by duplicating questions, so when you ask respondents to repeat a question, you actually send them to a new version of the original question. Read our Use repeated fields article.
- Do you need to remove Logic Jumps from your typeform? Check out this article: How to remove PRO features from your typeform.