Conditional logic allows you to customise your respondent's form experience by building smart logic paths based on your respondent's input.

You can create logic paths by using if/then conditions. For example: if your t-shirt size is small, then jump to page 3.  

Depending on your respondent's answer you can:

  • Jump to a page including redirecting to your Thank You pages
  • Hide one or multiple blocks
  • Make answers required

Conditional logic is available for free to all Tally users.

Getting started with conditional logic

Start by creating your form and adding your form content. Then open the insert model by clicking '+' or typing '/' and search for "conditional logic". Insert the conditional logic block to start creating logic paths.

Conditions ("when")

Conditional logic paths consist out of a condition (when a respondent gives a certain answer) and an action (then perform an action based on that answer).

You can create conditions based on any type of input block. For example "when" the response to:

  • A short answer (for example: name) is not empty
  • A number or rating is bigger than x
  • A multiple choice (for example: yes/no) is 'yes'
  • A payment is paid or not paid
  • A date picker is before/after date x
  • ...

Click the three dots on the right to remove, duplicate, add new conditions or wrap them in a group. Adding new conditions enables you to define logic paths where multiple conditions (and/or) must be met to perform an action. By wrapping conditions in a group you can create an extra conditional group level.

Actions ("then")

Based on your conditions you can trigger 3 types of actions: hide blocks, make fields required or jump to another page.

1. Jump to page

'Jump to page' enables you to skip pages with questions that don't concern your respondents or to redirect respondents to a different Thank You page based on their form submission.

For example: if a respondent chooses to buy eBook x out of multiple options, then show Thank You Page 2 with the link to the correct eBook after form submission.

⚠️  With this action you jump from one page to another. It is important to place the conditional logic block on the page where the jump action is being triggered to know from which page the jump starts.

2.  Hide blocks

With conditional logic you can hide one or multiple questions or answer options depending on your respondents’ answers.

For example: when you create a form to rate your product and your respondent rates it 5 stars, then hide block "What can we do to improve the product?".

You can also hide answer options from multiple choice questions, checkboxes or dropdowns. For example: when your respondent answers "yes" to "Are you vegetarian", hide the option "Pasta Bolognese" from the multiple choice question "Please choose your meal".

3. Require fields

This option allows you to set a form field as required or not required depending on the respondent's input. For example: if a respondent wants to sign up for your newsletter, then make the email input field required.

Want to know more?

Want to know more about conditional logic? Don't hesitate to  reach out via hello@tally.so or feel free to join our Slack channel for immediate support.

We are always looking for new ways to improve Tally, if you have a suggestion, please request a feature below.