Show or hide fields based on answers
Use the Logic tab to show or hide fields based on earlier answers, test your rules in Try it, and see how many rules each plan allows.
Step by step
-
Open the Logic tab
In the Build step, click Logic above the element list. You'll see every rule on the form written as a sentence, like "Show Order number when What can we help with? is Order issue".
Logic tab -
Add a rule
Click Add rule and choose which field the rule should control. TidyForms starts the rule using the nearest choice field above it.
New rule -
Set the condition
The new rule opens ready to change, and Edit reopens it later. Choose Show or Hide, then the field to check, how to compare it, and the answer. Click Done when the sentence reads right.
A rule -
Spot rules on the form
Fields with a rule have a small Logic badge in the preview and a lightning icon in the list. Click the badge to jump straight to that rule.
Logic badge on a field -
Or start from the field
Select any field and scroll to the end of its settings. Show this field only for some answers adds a rule for that field.
Field settings panel -
Test your rules
Switch the preview to Try it and answer like a customer. Turn on Logic in the preview bar to see which rules fired and why.
Try it (preview mode)
How a rule works
Each rule controls one field and checks the answers to fields above it. When a customer’s answers match, the field shows (or hides). Everything else on the form stays as it is.
The way you compare an answer depends on the kind of field you’re checking:
- Dropdown, radio buttons, button choice, country: is, is not.
- Checkboxes and image options: includes, does not include.
- Consent: is ticked, is not ticked. Switch: is on, is off.
- Number, quantity, slider, ratings and calculations: is, is more than, is less than.
- Text, email and similar fields: is, is not, contains, is filled in, is empty.
More than one condition
Click Add condition to check more than one answer. Then choose whether all of them must match, or any of them. For example, show “Company name” when the topic is Wholesale and the quantity is more than 50.
To take a rule off a field, click Always show or the bin icon on its card.
What the labels on a rule mean
Each rule card has a status:
- Working: the rule is fine.
- Check order: the rule checks a field that comes after the one it controls. Move the checked field above it, so customers answer it first.
- Needs a fix: a field the rule used was deleted. Pick another or remove the condition.
Plans
- Free: up to 3 show or hide rules per form.
- Pro: unlimited rules, plus rules on whole Sections.
- Pro+: everything in Pro, plus rules that skip entire pages on multi-page forms.
Tip: Renaming an option in a dropdown or radio field updates every rule that uses it, so you don’t have to fix your rules by hand.
Common mistakes
- The checked field is below. Customers fill forms top to bottom, so a rule should depend on earlier answers. The Check order label catches this.
- Testing in Edit mode. In Edit mode every field shows so you can work on it. Use Try it to see the form as customers do.
- Hiding a field with Hidden on the store. That hides it for everyone, all the time. Use a rule when it should depend on an answer.
Related
Questions
How many rules can I have?
Free forms can have up to 3 show or hide rules. Pro and Pro+ have no limit.
Can I make a field required only in some cases?
Yes, in effect. Turn on Required for the field and give it a show rule. A required field is only checked while it's visible, so customers who never see it aren't blocked.
What happens to a rule if I delete the field it checks?
TidyForms warns you before you delete it. The conditions that used it are removed, so the fields they controlled show again.
Still stuck?
Email hello@tidyforms.app with your store URL and a screenshot. A person on the team replies, usually within hours. Or click through it yourself in the live demo.