Conditional logic

Conditional logic lets your form adapt in real time based on how someone answers. Show or hide questions, skip irrelevant pages, jump to a custom thank you page, or route respondents down a completely different path — all based on their responses. The result is a smarter, shorter form that feels personal instead of generic.
 
Create a form with conditional logic
 
Conditional logic in Tally is completely free to use. No upgrade needed, no limits on the number of conditions you can add.
Conditional logic in Tally is completely free to use. No upgrade needed, no limits on the number of conditions you can add.
 


Conditional logic examples

Conditional logic is a versatile tool that allows you to create tailored form experiences based on user responses. Some examples of using conditional logic include:
  • Lead qualification: Ask progressively detailed questions and end the form early if someone doesn't qualify — no wasted time for you or them. Route high-intent leads to a specific page or redirect URL.
  • Pricing calculators: Use calculated fields with conditional logic to display custom quotes, totals, or estimates based on selections — updated live as respondents answer.
  • Personalized confirmation: Show a different thank you page or message based on how someone answered — useful for quiz results, NPS follow-ups, or application outcomes.
  • Personality quizzes: Display the result category respondents scored highest on, using calculated fields and conditional page jumps. See how in the personality quiz guide.
 

How to create logic

Type /logic to add conditional logic to your form. You can add conditions on any type of input block. Click : next to the logic block to remove, duplicate, add new, or wrap conditions in a group.
 
notion image
 
Use the cmd/ctrl + shift + L shortcut to add a conditional logic block under a selected input block.
Use the cmd/ctrl + shift + L shortcut to add a conditional logic block under a selected input block.
 

Actions

After adding a conditional logic block to your form, you can select from six types of actions to trigger. You’ll find them in the Then dropdown.
 

Jump to page

Jump to page enables you to skip pages with questions that don't concern your respondents or to redirect them to a different Thank you page.
In the example below, the Jump to page is configured to redirect respondents under 18 to page 3 rather than continuing with the rest of the form flow.
 
notion image
 
It’s important to place the conditional logic block on the page where you want the jump action to trigger. The jump will only trigger when respondents click the “Next” or “Submit” button.
It’s important to place the conditional logic block on the page where you want the jump action to trigger. The jump will only trigger when respondents click the “Next” or “Submit” button.
 

Rename pages

Renaming your pages makes it easier to identify your pages when installing page jumps in a lengthy form with a lot of pages. You can rename a page by clicking the page number.
 
notion image
 

Calculate a value

With calculated fields, you can use your respondents' answers to calculate (and display) scores, prices, or other values.
 

Make answers required

The Require answer option allows you to set a form field as required or not, depending on the respondent's input. For example, if a respondent wants to sign up for your newsletter, make the email input field required.
notion image
You can use the keyboard shortcut to make selected questions required:
ctrl/cmd + shift + R
You can use the keyboard shortcut to make selected questions required: ctrl/cmd + shift + R
 

Show or hide blocks

You can show or hide any block in your form depending on your respondents’ answers.
 
How to hide blocks with conditional logic
Insert Conditional logic and choose Hide blocks. Use the dropdown to select blocks. Selecting a page or a question will select all blocks inside that page or question.
notion image
Use the keyboard shortcut to hide selected blocks: 
ctrl/cmd + shift + H
Use the keyboard shortcut to hide selected blocks: ctrl/cmd + shift + H
 
How to show blocks with conditional logic
To show blocks conditionally, you need to hide them first. Click ⋮⋮ to open block settings and click Hide. When you click a question title, all answer options are selected automatically.
notion image
 
Then, insert Conditional logic and choose Show blocks . Use the dropdown to select the blocks you want to show. Selecting a page or a question will select all blocks inside that page or question.
In this example the question “What’s your role…” will only be shown when “Your email address” is not empty.
In this example the question “What’s your role…” will only be shown when “Your email address” is not empty.
 

Hide button to disable completion

Using Hide button to disable completion, you can prevent respondents from submitting your form by hiding the submit button or the button to proceed to the next page.
 
notion image

Redirect to different URLs and Tally forms

You can redirect respondents to different websites, landing pages, or Tally forms upon form completion. For this, you’ll need to use conditional logic and calculated fields.
You can also add hidden blocks to allow respondents to enter additional information before leaving the form for more comprehensive and trackable lead capture. As a result, the form creates an interactive landing page-like experience.
To learn more about redirecting to different URLs, read our redirect on completion guide.
 
notion image
 

Troubleshooting

When dealing with long forms, conditional logic can become more intricate and prone to logical errors. With extensive fields, conditions, and actions, it's crucial to be cautious, as even small mistakes can sneak in. To effectively troubleshoot your form, you can follow these general steps:
  1. Review the conditional logic blocks: Start by carefully examining the conditional logic rules you've set up for your form. Check if the conditions are linked to the correct fields and actions. Ensure that you have configured the logic correctly based on your specific requirements.
  1. Edit field names: Replace the default question field names with descriptive titles that accurately describe the question or information being collected. This will make it easier to identify and manage fields when setting up or troubleshooting conditional logic.
  1. Test your form: Before sending your form to respondents, test different scenarios. You may find it easier to spot any errors by doing several test runs and selecting different answer options each time.
  1. Use @ mentions to identify the specific issue: By strategically placing @ mentions before or after the conditional logic block, you create a mechanism to track the values of relevant inputs and calculated fields at specific points in the form's execution.
  1. Simplify to narrow down the problem: By reducing the complexity of the logic, you can isolate specific conditions or actions that may be causing the issue and focus your efforts on debugging those areas.