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
  • Show or hide blocks
  • Make answers required
  • Calculate a value

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 a value
  • A multiple choice (for example: yes/no) is 'yes'
  • A payment is paid or not paid
  • A date picker is before/after a date
  • And more

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 is older than 18, then jump to page 3.

⚠️  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.  Show or Hide blocks

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

For example: Show/hide an 'other' input field

  1. Hide the 'Add your job status' input field by clicking ⠿ → hide block
  2. Insert conditional logic by clicking /
  3. Add the logic: when the respondent answers 'other' to your multiple choice question, then show the 'Add your job status' input field

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.

4. Calculate

With Tally's Calculator, you can add magic to your forms by using your respondent’s answers to calculate (and display) scores, prices or other values. Read more about calculations in this post.

Didn't find what you're looking for?

Don't hesitate to  reach out via 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.