Conditional Logic in Forms: Show & Hide Fields
September 7, 2026

Conditional logic is what separates a smart form from a long, one-size-fits-all questionnaire. It shows or hides fields based on how someone answers, so each person only sees the questions relevant to them. The result is a form that feels short even when it can collect a lot. This guide explains how form logic works and shows real examples you can copy.
What conditional logic does
Conditional logic (also called skip logic or branching) follows simple if-then rules:
- If the visitor picks "Delivery," then show the shipping address.
- If they answer "No," then skip the follow-up questions.
- If they choose "Other," then reveal a text field to explain.
Instead of everyone wading through every question, the form adapts in real time to each response.
Build a form with logic free with FormMaker
Types of form logic
- Show/hide fields. Reveal a field only when it is relevant, like an address only for delivery orders.
- Skip logic. Jump past whole sections that do not apply based on an answer.
- Required-if logic. Make a field required only when a condition is met.
- Calculation logic. Compute totals or scores from previous answers, for order forms or quizzes.
Real examples
Order form
Ask "Delivery or pickup?" and show the shipping address only for delivery. Pickup customers never see fields they do not need.
Contact or support form
Ask "What is this about?" and route follow-up questions by topic — a billing question shows different fields than a technical one.
Registration form
Ask "Are you registering a guest?" and reveal guest-name fields only when the answer is yes.
Survey
Ask "Have you used our product?" and skip the detailed feedback section for people who have not, so they are not stuck on irrelevant questions.
Why logic improves conversion
- Shorter perceived length. People only see questions that apply, so the form feels quick.
- Cleaner data. You avoid "N/A" answers and irrelevant fields.
- Better experience. The form feels like it understands the person, which builds trust.
- Higher completion. Less friction means fewer people abandon partway through.
Best practices
- Start broad, then narrow. Ask the branching question first, then reveal specifics.
- Do not over-branch. Too many nested rules get hard to maintain. Keep logic purposeful.
- Test every path. Walk through each branch to make sure the right fields appear.
- Keep it invisible. Good logic should feel natural, not like a maze.
Build a form with conditional logic in minutes
In FormMaker, add your fields, then set a rule like "show this field when that answer is selected." Chain a few rules to build order forms, smart surveys, and multi-path registrations. Publish it, share the link or embed it, and each visitor gets a form tailored to their answers — shorter, smarter, and more likely to be completed.
Create your logic form free with FormMaker
FAQ
What is conditional logic in a form?
It is a set of if-then rules that show, hide, or skip fields based on how someone answers, so each person only sees relevant questions.
What is the difference between show/hide and skip logic?
Show/hide reveals or conceals individual fields; skip logic jumps past entire sections. Both tailor the form to each respondent.
Does conditional logic improve completion rates?
Yes. By keeping forms short and relevant, logic reduces friction and irrelevant questions, which lowers abandonment.
Is conditional logic hard to set up?
No. In a modern builder you add a rule in plain terms — "show field X when answer Y is selected" — without any code.
Build your first form free
Drag, drop, publish. No credit card, unlimited submissions.