Signup

Use Branching and calculations in Logic to show relevant questions

When typeforms are more relevant to your audience, you’ll achieve higher engagement and completion rates. You can use Logic to create branching typeforms that head down different paths, depending on people’s answers. It’s a neat way of segmenting your audience and means they’ll only see questions relevant to them. This saves time, and keeps them interested!

Note: Logic isn't available on our mobile builder just yet. Edit your typeform on desktop to get the full power of Logic!

Let’s look at an example. The typeform below starts with a Multiple Choice question, and people can choose as many options as they like. Our respondents will only see follow-up questions relevant to their choices. See for yourself below.

So if someone picks The New Yorker, they’ll only see questions relating to that. But also, if they pick The New Yorker and Time, they’ll see questions relating to both. Not bad! Let’s find out how to use Logic to do this…

Below you'll find the Logic and structure of the typeform.

multibranch7.png

1. To get started, add a Multiple Choice or Picture Choice question. We’re using the former.

Be sure to activate Multiple selection from the right-hand Question panel.

multibranch8.png

2. Add the 4 follow-up questions based on the 4 possible answers. The 4 follow-up questions in our example are these Rating questions:

multibranching_5.png

Next we’re going to set up Logic for these questions!

3. Choose Logic from the right-hand panel, then click Branching and calculations. Add the following Logic to the Multiple Choice question 'Which news magazines do you like to read?':

usebc1.png

HC_BobRoss_ilu_cropped.png
Tip! You can edit your questions directly in the Branching and calculations window just by clicking and typing in the text fields.

4. We want to hide irrelevant follow-up questions from respondents. To do this, we’ll add the same set of Logic we added to the Multiple Choice question in step #3 to each follow-up question – but excluding any Logic covering the jumps to the current and previous questions. They cascade, with fewer jumps on each subsequent block, as you’ll see.

HC_Warning_ilu_cropped.png
Warning! Add Logic in this order, so no follow-up answers will be skipped. Because of how Logic behaves, the first condition that’s met will trigger the jump and prevent other scenarios.

This is the Logic added to follow-up question #2 ‘How would you rate The New Yorker?’.

usebc2.png

This is the Logic added to the follow-up question #3 ‘How would you rate Time?’.

usebc3.png

This is the Logic added to the follow-up question #4 ‘How would you rate Fortune?’.

usebc4.png

For #5 ‘How would you rate The Economist?’, we don’t need to add any Logic.

usebc5.png

Logic for multiple follow-up questions

Using the example typeform shown above, let's say that you wanted to ask several questions based on the respondent's answer to question #1. Maybe you don't only want to know how they rate the magazine, but also how often they read the magazine, or why they like that magazine more than other magazines. 

You can bundle related questions together in a Question Group. To move to another question following a Question Group, all you need to do is add logic to the last question in the group. For example, here we've created a Question Group for each magazine.

multibranch9.png

Add logic to question 1 to direct respondents to question group 2 if they choose "The New Yorker". This will show respondents questions 2a-2c. Then, you can add logic to question 2c to direct respondents to the next question based on their answer. This is an easy way to ask respondents who read multiple magazines the same questions about each one.

Check it out for yourself!

Here's the typeform we used in this article:

And here's a visual overview of the Logic Map for the logic in this typeform:

logicmapupcoming.png

Each question group (questions 234, and 5) contains questions about a different magazine. After question C in each group, respondents move on to a question group about another magazine, or to the last question in the typeform (question 6), depending on their answers to the first typeform question.

Tap into our community knowledge