Checkboxes & conditional fields
Checkbox fields
Section titled “Checkbox fields”A checkbox field is a simple opt-in the customer can tick — “Add an engraving”, “Include a personal note”. Its state is transmitted with the order like any other field.
The gift box option is a special, stock-aware kind of checkbox configured separately.
Conditional display (show if)
Section titled “Conditional display (show if)”Any field can be set to appear only when a given checkbox is ticked. The classic pattern:
- Add a checkbox field “Add an engraving”.
- Add a text field “Your text”, set to show only if that checkbox is checked.
Behavior details worth knowing:
- A hidden field loses its
requiredconstraint — a customer who leaves the checkbox unticked is never blocked by a field they can’t see. - Hidden fields transmit nothing to the order.
- When the checkbox is ticked, the field appears instantly and the live preview picks it up as usual.
Interaction with the surcharge
Section titled “Interaction with the surcharge”When the surcharge trigger is set to “when any field is filled”, a ticked checkbox counts as filled — which is usually what you want with the “Add an engraving” pattern, since ticking the box is precisely the opt-in to the paid option. See Engraving surcharge.