⚙️How to set a conditional logic?

Conditional logic allows you to show or hide a field based on a customer’s selection.

Example use case

You want to ask customers whether their purchase is a gift. If the answer is Yes, you want to display an additional field for a gift note.

Step-by-step setup

  1. First, create a Checkbox field with the label “Is this a gift?” and apply it to the relevant products.

  2. Second, create another field (for example, a Text Box) for the gift note.

  3. In the Visibility section of the second field, enable Conditional Display.

  4. Set the condition:

    • IF the checkbox option equals “Yes”

    • THEN display this field.

circle-exclamation

Once saved, the gift note field will only appear when the customer selects the “Yes” option for the “Is this a gift?” checkbox field.

circle-info

Conditional display is only available for dropdown, checkbox, radio button and image swatch fields.

Please click "Create this condition" button
Condition Added
circle-exclamation

Once everything is set, this is how it will appear on your product page. When “Yes” is selected, the text box is displayed. If “No” is selected, the text box remains hidden.

Is this is a gift? -Yes
Is this is a gift? -No

Watch the detailed video to learn how to apply conditional logic.

Last updated