Conditional logic shows or hides an option depending on what the shopper chose in another option. It is set per option in the product editor: click the option in the Options list and scroll to Conditional Logic. Options that have conditions show a "conditional" badge in the list.
Example: choose from a library or upload an image
Say you want shoppers to either pick an image from your library (an Image Choices option) or upload their own (an Image Upload option), but never see both at once.

- Add a Button option with two choices, "Choose from Library" and "Upload your Image".
- Add an Image Choices option (with the Image Set you want to offer) and an Image Upload option.
- Both now show at the same time, whichever button is selected. The conditions fix that.
- Open the Image Choices option → Conditional Logic → Add condition: show it when the Button option is "Choose from Library".
- Do the same on the Image Upload option: show it when the Button option is "Upload your Image".
- Now each option appears only with its button.
Several conditions
An option can have more than one rule. Choose whether it shows when All rules match or when Any single rule matches.

A rule can list several values: it is true when any of them is selected.
Click the = in a rule to turn it into ≠ (not equal): the option then shows when that value is not selected.
Which options can drive a condition
Rules can refer to Button, Dropdown, Checkbox, Radio, Image Choices and Color Choices options, and to the product's Shopify variants. If a value a rule refers to is later deleted, the editor flags the option ("can never show") — open it and fix or remove the rule.
Troubleshooting
- There is no page listing every condition; conditions live on each option. The “conditional” badge in the Options list tells you which options have one.
- Renaming or deleting a Shopify variant breaks rules that pointed at it. Open the option and pick the variant again (rules on Variant title use the variant’s current name).
- A rule set in version 2 (Legacy condition) can keep an option hidden in version 3. Delete it and set the condition inside the option.
- Options for the wrong color show up: the rule is missing on one of the views. Each view’s options need their own rules.
- A choice that drives conditions must have a default or be Required, otherwise nothing is shown until the shopper clicks.
- When an option set is replaced, rules pointing at its old values stop matching — see Prevent conditions from breaking when you update an image set.
Questions about conditions? Chat with us from the Help Center.
More questions from support
Answers our team gave to merchants who read this article and still had a question. Each is a real case, with the store details removed.
Why does a deleted or hidden option still show on the storefront?
An option set to hide with conditional logic stays hidden until those conditions are met, and a deleted option can still show if conditional logic on other fields references it. Open the product editor, find every field whose conditions mention the missing or deleted option, and remove those conditions. Save and reload the product page. If the option still shows after re-applying a template, check the product's own configuration for leftover conditions tied to the deleted option.
How do I show different options for each product variant?
When you have separate options for each variant (like color-specific checkboxes), they all show at once because they have no conditions. Add conditional logic to each option to tie it to its variant: select the option, go to Conditional Logic, and set a rule like Variant Title = Black. Repeat for every variant-specific option, using the matching variant name. Save and check the storefront—only the option for the selected variant will display. See Conditional logic for step-by-step examples and Conditional logic recipes for ready-to-copy setups including variant-based options.
How do I build one product with a design picker, quote dropdown and name field?
Build one template with an Image Choice element for the design grid, a separate text dropdown for each design's quote options positioned individually, and text elements for the name field. Show each quote dropdown and text element conditionally based on the selected design using conditional logic. Text placement differs per design, so each design needs its own text elements — 30 designs need 30 text elements. Edit each text element's Basic → Default value to set what appears in the preview, and use Max character to limit input length.
How do I change text color based on the product variant selected?
Create one text element per variant color, set each to the matching color, then use conditional logic to show each text element only when its variant is selected. Open the text element's Conditional Logic tab, choose the variant field, set it to equal the variant name (e.g. Pink), and save. Add or swap a color by editing the condition and the text element's color setting. Test on the storefront to confirm each variant shows the right text color.
Why are name text fields hidden when icon selection uses conditional logic?
Chained conditional logic — where one field is conditionally hidden based on another field that itself has a condition — can hide fields further down the chain unintentionally. Open the product editor, find the icon element that has a conditional rule hiding it, and remove that rule so the icon field always shows. Then check that any text fields that depend on the icon are not also conditionally hidden. If an optional icon field still does not clear when the shopper selects 'remove', set its default selection to 'No default selection'. Adjust text position and size in Position & Orientation if you need them to shift based on whether an icon is shown.


How do I change the preview background or option sets based on a previous selection?
The view background cannot change by condition, but you can build it from conditional elements. First, add a Button or Dropdown for the initial choice (e.g., thickness). Create one option set per choice and set conditions so each shows only for its matching selection—each can carry its own prices. For the background, set the view to Blank Canvas, then add an Image Placeholder for each background variant with a condition that shows only the one matching the chosen option. This way, different selections trigger different backgrounds and option sets with their own pricing.
How do I show options only when a checkbox is ticked?
Use conditional logic to show or hide options based on the checkbox's value. Open the option you want to hide, go to the Basic tab, find Conditional Logic, and set a rule: show this option only when the checkbox equals your chosen value (e.g., "checked"). Button colors are under Settings → Design → Buttons; for a size the Design page does not offer, chat with support with the hex code and size you want.
Why does text duplicate or disappear when I use conditional fields on the preview?
Text can duplicate or disappear when multiple text or placeholder elements overlap on the canvas, or when conditional logic hides one element but leaves another showing.

- Check the canvas layers in order — look for duplicate text placeholders showing the same letter.
- Delete any extras.
- If deleting a placeholder makes a label vanish for some button choices, use two separate text placeholders instead of one.
- Set conditional logic on each placeholder so one shows only when its paired button choice is selected (e.g., one for 'Telephone only', another for 'Telephone and mobile').
- Test the preview by clicking each button choice to confirm the right text appears without duplication.