
How to Show and Hide Form Fields Based on User Answers
The fastest way to make a form feel shorter is to stop showing people fields that don’t apply to them. A long form full of irrelevant questions gets abandoned; a form that reveals fields only when they’re needed feels quick and considerate. That’s what conditional logic does — it shows and hides fields based on what people answer. Here’s how to use it in Auto Form Builder.
What conditional logic does
Conditional logic lets a field appear or disappear depending on earlier answers. Pick “Other” from a dropdown and a text box appears for details. Say you’re an existing customer and an account-number field shows up. Choose “no” and a whole section stays hidden. The form reacts in real time to each person, so everyone sees a version tailored to them — without you building separate forms.
Set up a show/hide rule
The setup is straightforward:
- Select the field you want to show or hide and enable conditional logic on it.
- Choose the action — Show or Hide.
- Add a condition that triggers it, such as “Country is United States” or “Enquiry type is Support.”
- Save and preview.
Now that field only appears (or disappears) when the condition is met. It’s the same simple pattern whether you’re revealing one extra question or a whole group of fields.
Combine conditions with AND/OR
Real forms often need more nuance than a single trigger. You can add multiple conditions to a field and combine them with AND/OR logic — show a field only when someone is both a new customer AND selected a particular plan, or when either of two options is chosen. That lets you build genuinely smart behavior without any code.
It works with every field
Conditional logic isn’t limited to a few field types — it works across the board, including survey fields. You can show a “What can we improve?” question only when an NPS score is low, reveal follow-ups based on a radio or dropdown choice, or branch based on almost anything a person enters. Dropdowns and radio buttons are the most common triggers because they present clear, discrete choices.
Go further with multi-step branching
Show/hide handles individual fields. When you want to skip whole sections, combine conditional logic with multi-step forms, where answer-based branching lets you skip or jump entire steps. On a long form, that’s the difference between everyone slogging through every section and each person taking the shortest valid path to the end.
Why it lifts completion
Every field you hide from someone who doesn’t need it is one less reason for them to give up. Conditional logic keeps forms feeling short and relevant no matter how much they can potentially collect, which is exactly why adaptive forms complete better than static ones. You get all the questions you might need, and each person only answers the ones that apply.
Build a form that adapts
- Enable conditional logic on the field you want to control.
- Set Show or Hide and add your condition(s).
- Use AND/OR for more precise rules.
- Combine with multi-step branching to skip whole sections.
A form that responds to its answers feels effortless to fill in — and effortless forms are the ones people finish. It’s all built in, and free.
Related reading: Creating a quote request form with conditional logic and other option with text field on checkboxes.
Ready to build a form that adapts? Install Auto Form Builder free from WordPress.org.
FAQ
How do I show a field only when a certain answer is chosen?
Enable conditional logic on the field, set it to Show, and add a condition — for example, show it only when a dropdown equals a specific option.
Can I use more than one condition?
Yes. You can combine multiple conditions with AND/OR logic, so a field appears based on a combination of answers.