9 min readUpdated 19 November 2026
Conditional logic lets a field stay hidden until it matters. An engraving text box only appears after the customer picks Yes, and a gift message only shows on gift wrap. You build the rules per field in the customizer, and it takes a couple of minutes per field. Conditional logic is included on every plan, Free included.
Where the rules live
Rules belong to a single field, not to the experience as a whole. Open your experience in the customizer, go to the Fields tab, and expand the field you want to control. The rule controls sit at the bottom of that field's settings, below the field's own options:
- Show this field when… is a dropdown with two choices, All rules match (AND) and Any rule matches (OR). The help text under it reads "How the rules below combine. Only matters when you add more than one rule."
- An Add rule button. Each rule you add appears as a card above it.
A field with no rules always shows. That is the default for every new field.
Display-only blocks take rules too. Heading, Paragraph, Divider, Spacer, Custom HTML and Size chart all have the same Show this field when… section, so you can hide a whole chunk of explanation until it is needed.

Build your first rule
This example is the classic one: an Engraving text field that only appears when the customer answers Yes to a field labelled Add engraving?.
- In the Fields tab, expand the field you want to hide, Engraving text.
- Scroll to Show this field when… and click Add rule.
- Leave Based on set to Another field.
- In When field, pick Add engraving?. The list shows the other fields in this experience. The field you are editing is not in it, because a rule cannot check its own field, and neither are display blocks such as headings, which have no answer. If two fields share a label, each one shows its position, for example Size (field 3).
- Set Condition to equals.
- In Value, pick Yes. For a dropdown, radio buttons, swatch, multiple choice, toggle or shipping protection field, Value lists that field's choices, so the text always matches exactly. For any other field, type the value.
- Try it in the live preview on the right. Answer the controlling field and watch Engraving text appear and disappear. The preview runs the same rule engine as the storefront, so field-based rules behave there just as they will for a customer. The one exception is a rule keyed to a Product picker field, which the preview does not wire up.
- Save the experience. If the badge beside the name still reads Draft, click Publish. A draft never renders on the storefront. If it already reads Published, saving is enough: rules are compiled into the storefront widget every time you save a published experience, so you do not have to publish again.

The rule remembers the field you picked, not just its label, so renaming the controlling field keeps the rule working, and the rule shows the new name. Rules saved before the pick list existed hold only the label that was typed in. They keep working as long as that label matches a field (ignoring capitals and spaces at either end, first match wins), but they break on a rename. Open them and pick the field once to make them rename-proof.
Warnings under a rule
A rule that cannot work as saved keeps what was saved and shows a short warning under it, so nothing changes until you pick something:
- No field picked yet. The rule checks nothing. The warning says what that does: it either hides the field for good or has no effect.
- No field in this experience is called "…". The rule was typed with a label that no longer matches a field, usually after a rename or a delete. The old label stays in When field, marked (no matching field). Pick the right field.
- (not a choice) in Value. The saved value is not one of the controlling field's choices, so an equals rule never matches. When only the capitals differ, the warning shows the exact choice.
- A rule cannot check the field it belongs to. Pick another field.
You can add up to 5 rules on one field. Past that, Add rule is disabled. The rule cards are titled Item 1, Item 2 and so on. The list does not summarise what each rule does, so open a card to read it.
The five conditions
The Condition dropdown offers exactly five operators.
| Condition | What it does |
|---|---|
| equals | The answer matches Value exactly. Case-sensitive. |
| does not equal | The answer is anything other than Value. Case-sensitive. |
| includes | Value appears anywhere inside the answer. Not case-sensitive. |
| is not empty | The customer has answered the field at all. |
| is empty | The customer has not answered the field yet. |
The Value input only appears for equals, does not equal and includes. It disappears for is empty and is not empty, because those two do not compare against anything.
includes is the forgiving one. It ignores case and matches part of an answer, so a rule for yes also matches Yes and Yes, please. Use it for a multiple choice field: the answer holds every ticked choice, so equals only matches when that one choice is the only one ticked. Picking a multiple choice field in When field switches equals to includes for you. Use equals when you need one specific answer and nothing else.
A toggle has one value, its on label (Yes unless you changed it). To check that a toggle is off, use is empty.
Rules are re-checked on every keystroke and every selection change inside the widget, so fields appear and disappear as the customer types.
Combining rules with AND or OR
Show this field when… decides how multiple rules combine. It defaults to All rules match (AND) and has no effect at all while a field has one rule or none.
- All rules match (AND): the field shows only when every rule passes. Use it to narrow: show Gift message when Gift wrap equals
Yesand Delivery type equalsSend direct. - Any rule matches (OR): the field shows when at least one rule passes. Use it to widen: show Upgrade extras when Frame equals
Oakor Frame equalsWalnut.
There is no way to mix AND and OR on the same field. If you need that, split the logic across two fields, or restate it as a single set of AND rules.
Rules based on the product variant
Set Based on to Product variant to key a field to what the customer has selected on the product page instead of to another field.
- Add a rule and set Based on to Product variant.
- In Variant option (optional), type the name of the variant option you want to compare, such as
Color. The help text reads "Name of the variant option to compare. Leave blank to match the full variant title." - Choose a Condition and a Value as usual.
Leaving Variant option (optional) blank compares against the whole variant title, for example Blue / Large. In that case includes is usually the right condition, since the title joins every option together.
Three limits to plan around:
- Variant rules only run on the product page. The cart widget never knows which variant it is looking at, so a variant rule there compares against an empty value and never matches. The one exception is is empty, which always passes and leaves the field showing.
- The customizer preview has no variant data, so a variant rule looks permanently unmatched in the preview (again, apart from is empty). Test it on a real product page instead.
- Reading the selected variant depends on how your theme publishes it. It works on standard themes, but it is best-effort. After publishing, switch variants a few times on your live product page and check the field behaves.
What happens to a hidden field answer
On the product page, a hidden field is skipped entirely when the values are collected for the cart. That means:
- A hidden field's answer never reaches the cart. It is not written as a line item property, so it will not appear on the order.
- A hidden required field does not block Add to cart. Validation skips hidden fields, so a required question that is not currently relevant will not stop the customer.
- A hidden field adds no surcharge. Any add-on price on the field is left out of the total while the field is hidden.
- The typed value is kept in the browser. Hiding a field does not clear what the customer typed, so if the rule matches again the previous answer is still there.
One exception, in the cart. If a customer already answered a field on the product page and that field is hidden by a rule in the cart editor, the value stays on the cart line as it was captured. Hiding a field in the cart stops the customer from editing it. It does not strip a value that is already saved on the line.
Troubleshooting
The field never appears on the storefront. Open the field's rules and look for a warning. A rule with no field picked, or one pointing at a field that no longer exists, reads the answer as blank, and an equals rule against a blank answer can never pass. Pick the field in When field and the value in Value, then save again (or click Publish if the experience is still a draft). Delete any rule you added by mistake.
The field always shows, even when the rule should hide it. Same cause, opposite symptom: an is empty rule pointing at nothing always passes. Pick the field, and confirm you saved afterwards. A published experience compiles your rules to the storefront on Save, and a draft only reaches the storefront once you click Publish.
A rule broke after I renamed a field. Rules picked from the list follow a rename. An older rule saved with a typed label shows the old label marked (no matching field). Pick the field again in When field, then save.
The rule says Product variant but I meant one of my fields. Set Based on to Another field and pick the field. Product variant checks the option the shopper picked on the product itself, like Size or Color.
My variant rule works on the product page but not in the cart. That is expected. Variant rules only have variant data on the product page placement. In the cart they compare against an empty value. In the cart, base the rule on another field instead.
The variant rule looks broken in the preview. The preview has no variant selected, so variant rules never match there. Publish and check a live product page.
Add rule is disabled. You have hit the limit of 5 rules on that field. Delete one, or move some of the logic to a different field.