Conditional logic

Conditional logic shows a field — or a whole section — only when the shopper’s other answers call for it. Rules are checked live in the browser and again on the server.

Pro feature

Conditional logic is part of ShapeOption Pro.

On this page

Add a ruleOperatorsNested rule groupsHide a whole sectionHow hidden fields behaveTips

Add a rule

1

Open the field to show or hide

Click its card, then the Conditional Logic tab.
2

Turn it on

Tick Enable conditional logic.
3

Choose ALL or ANY

Show when ALL rules match needs every rule to be true; Show when ANY rule matches needs only one.
4

Write the rule

Pick the other field, an operator, and the value to compare with — for example Gift wrap · equals · yes.
5

Add more if needed

Click + Add rule for another rule, or + Add group for a nested group.
6

Update the group

Open a product page and change the answers to watch the field appear and disappear.
Conditional logic rules on a field
(1) Turn it on. (2) ALL or ANY. (3) A rule: field, operator, value. (4) A nested group with its own ANY setting. (5) Role visibility for this field.

Operators

OperatorMatches when the other field…
equalshas exactly this value. For a checkbox group: this choice is ticked.
does not equaldoes not have this value.
has any valueis filled in or has something picked.
is emptyis left blank.
is greater thanis a number above this value.
is less thanis a number below this value.
containsincludes this text (any case), or has this choice ticked.

Nested rule groups

When one ALL/ANY list is not enough, add a group. Each group has its own ALL/ANY setting and counts as one rule of the list it sits in. Groups can be nested up to three levels deep.

Tip

Example: show “Express printing” when (Size equals XL AND Quantity is greater than 5) OR Color equals red.
Set the top list to ANY, add a group set to ALL with the two size and quantity rules, then add the color rule next to the group.

Hide a whole section

A Collapsible section field can carry rules too. When its rules do not match, the section and every field under it — up to the next section — are hidden.

1

Add a Collapsible section

Put it above the fields it should control, for example “Engraving details”.
2

Open its Conditional Logic tab

Enable conditional logic and add a rule such as Add engraving · equals · yes.
3

Update

Shoppers who do not want engraving never see the section or its fields.
A rule on a collapsible section
(1) The section “3. Extras” shows only when Print is not “No print”. (2) Every field under it — here the Extras checkbox group — is hidden with it.

Good to know

A section cannot depend on its own fields — hidden, they would read as empty and keep it hidden forever — so those fields are not offered in its rules. In the multi-step wizard, a hidden section’s step is skipped.

How hidden fields behave

  • A hidden field is never required, never charged and never saved with the order.
  • If a field is shown only by another field that is hidden, it is hidden as well.
  • The server checks every rule again on Add to Cart, so hidden values sent from the browser are ignored.

Tips

  • For choice fields, compare with the choice value (the Value column), not the label.
  • Rules can only use fields of the same group.
  • Number comparisons (greater/less than) work on Number, Range and Calculation fields.
  • To show a field only to certain user roles, use Visible to roles on the same tab — see Where groups appear.
Was this page helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *