Flat 30% off for Singapore 🇸🇬
← All posts

Conditional Logic in Forms: A Beginner's Guide

Skip questions that do not apply, follow up only when needed, end early or keep a score: conditional logic explained with a live example and a tool comparison.

Enter to send
Shaheer Malik

Shaheer Malik

Framer Designer & Developer

October 3, 20265 min read
Conditional Logic in Forms: A Beginner's Guide

Quick answer

Conditional logic makes a form change as people answer it. Each rule says when an answer matches, do something: skip questions that do not apply, ask a follow-up only when needed, end the form early, or add up a score and route people to different endings.

Conditional logic makes a form change as people answer it. Each rule says "when this answer matches, do that": skip questions that don't apply, ask a follow-up only when it's needed, end the form early, or add up a score and send people to different endings. It keeps forms short, because everyone sees only the questions meant for them.

I make Forms, the form builder in the examples, and I add logic to most forms I build for clients. The ideas work in any builder; I compare how Google Forms, Typeform and Tally do it below, using their own help pages, checked on 3 October 2026.

Four small flow diagrams: skip ahead, follow up, finish early and keep a score
Diagram by Shaheer Malik. Source: Forms conditional logic.

What is conditional logic in a form?

It's a set of rules that decide what each person sees next, based on what they've already answered. Without logic, a form shows every question to everyone in the same order. With logic, a car owner gets asked about their car and everyone else skips straight past it.

Government designers recommend it for exactly that reason. The GOV.UK guide to structuring forms says to use branching questions "so people only have to answer questions that are relevant to them". It's a form of what Jakob Nielsen calls progressive disclosure: showing only what's needed now, which he writes improves learnability, efficiency of use and error rate.

Every rule has two halves:

  • Conditions: when the rating is 3 or lower, when the answer is "No", when the score is 2 or more.
  • Actions: jump to a question, show or hide a question, end the form, or add to a score.

What can conditional logic do?

Four patterns cover almost every form I've built. The diagram above shows each one; here they are with a real use:

PatternExampleThe rule
Skip aheadOnly car owners are asked for the car modelIf "Own a car?" is No, jump to Contact
Follow upUnhappy customers are asked what went wrongIf the rating is 3 or lower, jump to "What went wrong?"
Finish earlyPeople who don't qualify aren't asked ten more questionsIf "Over 18?" is No, jump to a polite ending
Keep a scoreLeads with a budget and a timeline get a booking linkAdd 1 for each; if the score is 2 or more, jump to Book a call

Two extras make logic more useful. Hidden fields pass details in the form's link, such as ?source=newsletter, and rules can branch on them without asking anyone. Recall repeats an earlier answer in a later question, so "What's your name?" becomes "Nice to meet you, Ada". In Forms, both are on every plan.

What does conditional logic look like in a real form?

Here's the customer feedback demo on the Forms conditional logic page, answered twice. The first question is a star rating. Its only rule says: if the rating is 3 or lower, jump to "Sorry about that. What went wrong?". Everyone else carries on to "Lovely! What went well?", whose rule jumps past the complaint question to "Anything else?".

The rating question, then two different next questions: What went wrong for a rating of 3 or lower, and What went well for 4 or 5
Screenshots of the live Forms customer feedback demo, taken 3 October 2026. © Shaheer Malik. Source: forms.shaheermalik.com/features/conditional-logic.

Two rules, and nobody sees a question that doesn't fit their experience. Happy customers aren't asked what went wrong, and unhappy ones aren't asked what they loved. For the questions themselves, see my customer feedback questions.

How do I add conditional logic in Forms?

Open the form's Logic tab, add a rule, pick its conditions, then pick what should happen. Then preview the form and walk through each branch before you publish.

  1. Write the paths down first. A quick sketch like the diagram above saves you from rules that contradict each other.
  2. Open the form's Logic tab and add a rule for the question where the decision happens.
  3. Add the condition, such as a rating of 3 or lower. A rule can combine up to 30 conditions with "and" or "or".
  4. Add the action, such as jumping to "What went wrong?". A rule can run up to 20 actions, such as adding to a score and then jumping.
  5. Preview each path. Answer once as a happy customer and once as an unhappy one.
Forms conditional logic page: logic that asks only what matters
Screenshot of forms.shaheermalik.com/features/conditional-logic, taken 3 October 2026. © Shaheer Malik. Source: forms.shaheermalik.com/features/conditional-logic.

Forms runs the same rules in the builder preview, the live form and on the server, so what you test is what people get. Logic, variables, hidden fields and recall are on every plan, including Free, which allows one active form and 100 responses a month.

How do Google Forms, Typeform and Tally handle logic?

All four builders can branch on answers; they differ in which questions can branch and what the free plan allows:

BuilderHow logic worksOn the free plan
Google FormsGo to section based on answer, on multiple choice and dropdown questions onlyFree
TypeformBranching, calculations, scores and variablesIncluded, but the free plan collects 10 responses a month
TallySix actions, including jump to page, calculate, show or hide blocks and redirectFree, with no limit on conditions
FormsJump, show or hide, finish early, variables, hidden fields and recall; up to 30 conditions and 20 actions a ruleIncluded; 100 responses a month
Google Docs Editors Help: Show questions based on answers
Screenshot of support.google.com, Show questions based on answers, taken 3 October 2026. © Google. Source: support.google.com, Show questions based on answers.

Google Forms works by sections: you group questions into sections and send people to a section depending on one answer. That's fine for simple skips, but you can't branch on a text answer, a rating or a score. Tally and Typeform both handle richer rules, including calculations.

Tally Help Center: Conditional logic is completely free to use
Screenshot of tally.so/help, Conditional logic, taken 3 October 2026. © Tally. Source: tally.so/help, Conditional logic.

What mistakes break conditional logic?

  • Dead ends. Every path has to reach an ending. Test each branch to the last screen.
  • Rules that fight. If two rules on one question can both match, people may not land where you meant. Make conditions that can't overlap, such as "3 or lower" and "4 or more".
  • Skipping questions you need. If a branch skips a question your team relies on, such as an email, you'll get responses you can't follow up. Put must-have questions before the branches.
  • Using logic instead of cutting questions. Logic hides questions; it doesn't make a long form short. Delete what you won't use first, as I cover in form design best practices.
  • Not testing after edits. Moving or deleting a question can break a rule that pointed to it. Preview every path again before republishing.

Ready for more? Scoring is the next step: my guide to a lead qualification quiz that books calls uses a score to decide who gets a calendar. And logic works best with one question at a time, where each answer can change the very next screen.

Last updated: 3 October 2026. Build your first form free, no card needed, or talk to me about your project.

FAQ

Frequently asked questions

Rules that change what each person sees based on their answers. A rule has conditions, such as a rating of 3 or lower, and actions, such as jumping to a follow-up question, ending the form or adding to a score.

Want it done for you? I offer website design on a fixed price, from $700. See pricing.

Enter to send