Picture a form for a team dinner. It asks everyone whether they're coming, then asks everyone about dietary needs and plus-ones, including the people who just said they can't make it. They scroll past, a little puzzled, or answer anyway, and now your list has dietary needs for guests who won't be there.
Conditional questions fix that. A question only appears when an earlier answer makes it relevant. You'll also see them called branching, skip logic or show/hide logic; the idea is the same. Done well, the form feels like it was written for the person filling it in. Done badly, it feels like a maze. Here's how to get it right.
What conditional questions are
A conditional question has a condition attached: "show this only if the answer to that question was X". A few everyday examples:
- "Will you join us?" If yes: dietary needs and a plus-one. If no: a short goodbye and maybe "Anything you'd like to pass on?"
- "How would you like us to contact you?" If phone: ask for a number. If email: ask for an email address. Nobody gets asked for both.
- "What can we help with?" Each choice leads to one or two follow-up questions that only make sense for that kind of request.
The point is never to be clever. It's to leave out questions that don't apply, so people only spend time on the ones that do.
When a follow-up question earns its place
Conditional questions are worth it when:
- A question only applies to some people. Plus-ones only for guests who come. A company name only for people who answer on behalf of a business.
- One answer splits people into groups that need different details, such as different kinds of requests in a contact or internal request form.
- A detail only matters after a specific answer. "Something else" followed by "Tell us what you had in mind", or "Yes, I have an allergy" followed by "Which one?"
If a question applies to almost everyone, just ask it. Hiding it behind a condition adds a step without saving anyone time.
Keep it simple first
Before you add a branch, check whether a simpler form would do the same job.
- One optional question can be enough. "Anything we should know about dietary needs?" as an optional open question may work just as well as a full branch for a small event.
- Don't hide what people need to know. Important information, such as the date, the cancellation terms or how you'll use their details, belongs where everyone sees it, not behind an answer.
- Fewer questions win over clever logic. Our article on how long a form should be has a simple test for every question you're tempted to add.
Draw the paths before you build
A quick sketch on paper saves a lot of confusion later.
- List every question you want to ask.
- Mark which ones depend on an earlier answer, and on which answer exactly.
- Keep it shallow. One level of follow-ups is easy to follow and easy to test. A follow-up that has its own follow-up is sometimes fine. Chains that go deeper get hard for you and for the people filling in the form.
- Make every path end in the same place: the same send button and the same kind of thank-you screen.
If the sketch starts to look like a tree with lots of branches, you may really have two forms. That's fine: two short, clear forms are often kinder to fill in than one form that tries to do everything.
Write the deciding question clearly
Everything depends on the question that decides the path, so give it extra care.
- Use choices that don't overlap. If someone could reasonably pick two options, the branch behind them gets unpredictable.
- Include "Something else" or "Not sure yet" where it fits, and decide what it leads to. Usually that's one open question, not a dead end.
- Make it clear the answer matters. A short hint such as "The next question depends on your answer" helps people choose carefully.
- Ask the deciding question early, so people don't fill in half a form before it changes direction.
Our guide on how to write survey questions has more on neutral, easy-to-answer wording.
Make changes calm and easy to follow
A question that suddenly appears or disappears can be confusing, so keep changes gentle and predictable.
- On a single page, show the follow-up right below the answer that triggered it. Don't make other parts of the form jump around.
- In a form with steps, only show the steps that apply, and keep the progress honest. If a branch adds a step, the step count should show that. Our article on whether your form should ask one question at a time goes into steps and progress in more detail.
- Explain why a question appears when it isn't obvious, for example "Because you're bringing someone: what's their name?"
- Let people change their mind. If someone switches from "Yes" to "No", the follow-ups disappear again, and their earlier answers to those follow-ups should go with them.
- Keep it accessible. New questions should appear in a logical place in the reading order, work with a keyboard and be announced or easy to find with a screen reader. Our guide on making an accessible form covers the basics.
Hidden questions and required fields
This is where branching forms most often go wrong.
- A hidden question can never block sending. "Required" should only apply when the question is actually shown.
- Required follow-ups should be truly needed. If someone says they're bringing a plus-one, their name may be required. A note about the plus-one's dietary needs can stay optional.
- Error messages should point to a visible question, never to one the person can't see.
Our guide on which form fields should be required helps you decide which follow-ups really need an answer.
Collect less, not more
Conditional questions are one of the nicest ways to ask for less personal data.
- Ask for details only from the people they apply to. Dietary needs and allergies only from guests who come; a phone number only from people who prefer a call.
- Don't keep answers from paths someone left. If a person first said "Yes, I have an allergy", then changed it to "No", the allergy details shouldn't be stored.
- Be extra careful with sensitive follow-ups, such as health details. Ask only what you need, keep them optional where you can, limit who can see them and delete them when they're no longer needed.
Our GDPR-friendly form checklist covers the basics. It's practical guidance, not legal advice, so check what applies to your situation.
Test every path before you share
A branching form has as many versions as it has paths, and each one deserves a test.
- Fill in the form once for every path, choosing a different answer at each deciding question.
- Change your mind on purpose: pick an answer, fill in the follow-ups, then switch back and check that the follow-ups and their answers disappear.
- Try it on a phone and with only a keyboard.
- Look at the test responses, and check that you can tell "not shown" apart from "left empty".
- Ask someone else to fill it in without explaining anything. Where they hesitate is where the form needs work.
Delete the test responses before you share the real form.
Reading the responses
When the answers come in, remember that not everyone saw the same questions.
- An empty answer may simply mean the question wasn't shown. Don't count it as "no".
- Sort or filter by the deciding answer, so you read each group's follow-ups together.
- Watch the "Something else" answers. If the same thing keeps coming up, it may deserve its own choice and its own follow-up.
Our article on what to do with form responses has more on owners, status and tidying up.
A quick checklist
- Every conditional question only applies to some people; questions for everyone are simply asked.
- The paths are sketched out, and stay one or two levels deep.
- The deciding question has clear choices that don't overlap, plus "Something else" where it fits.
- The deciding question comes early.
- Follow-ups appear right where people expect them, and progress stays honest.
- Hidden questions never block sending; required only applies when shown.
- Answers from paths someone left are cleared.
- Sensitive follow-ups are optional where possible and only visible to the people who need them.
- Every path is tested, on a phone and with a keyboard, and test responses are deleted.
- In the responses, "not shown" is not mistaken for "no".
How we're thinking about this at Cuppaform
Cuppaform is still being built. We'd like making a form to feel like a little party, and a form that only asks what fits is a big part of that. Branching on an answer, showing people why a question appears and keeping required fields sensible when questions are hidden are part of what we're designing and testing. Responses are stored in the EU. We're not there yet, so we won't promise how each part will work.
What you can try today is our demo. Describe a form in one sentence, for example "An RSVP for our team dinner with dietary needs and plus-ones". You get a starting draft that asks "Will you join us?", followed by "Any dietary needs we should know about?" and "Bringing a plus-one?", both marked "only if 'Yes, count me in'". The sample form in the demo branches too: the question after "What's your form for?" adapts to what you pick. The demo runs in your browser and only shows the draft; nothing is sent or stored.
You can try the demo and see what your form would look like.