Conditional Logic (Avis and Avis)
Option B is shown/ hidden according to the value of option A
Scenario: Only if customers choose to add a card, the option to put in a message on the card will show. You can check out our Demo product to see how it works 😊

How to set up the Conditional logic
1. In the Avis Option tab -> Option Set section -> click the Create Option Set button -> Click Add option button -> Choose your Option Type



2. To begin, you need to create your primary option (Option A). In this case, we created a radio button option asking if the customer would like to add a card.

3. Then, create the second option as a text option (Option B) so customers can fill in their message.

4. Within the second option (Option B), click Create Conditional logic

Then, pick the Label on Cart of the option that you would like your second option (Option B) to depend on from the dropdown list.
Please choose the correct Label on Cart and make sure that it contains your affirmative option value above.

5. Hit Save to finish the option B setup.

6. In the Select product section, choose the products you want this Option Set to apply to.
7. Hit the Save button on the top right corner to save the Option Set and you're all done!

You can check on the result in the Preview section (on the right side of the options) or you can open the online Product page and see how the Conditional logic works.
Rules and conditions
You can define rules that determine when to show or hide a specific option.
Show this option if All / Any of the following match
All → The condition will apply only when every rule you add is true. Example: Show “Engraving Font” only if “Add Engraving” is Yes and “Material” is Wood.
Any → The condition will apply if at least one rule is true. Example: Show “Gift Wrap” if “Additional Gift” is Mug or Notebook.

Condition Types Explained
Condition Type
Description
Example
contains
True if the selected option includes the specified value.
Show if Size option contains Small (Medium Small will be accepted)
does not contain
True if the selected option does not include the specified value.
Show if Size option does not contain Small. (Medium Small won't be accepted)
is equal to
True if the selected option’s value exactly matches the specified value.
Show if Size option is equal to Small (Medium Small won't be accepted)
is not equal to
True if the selected option’s value does not match the specified value.
Show if Size option is not equal to Small (Medium Small will be accepted)
starts with
True if the selected option’s value begins with the specified text.
Show if Size option starts with S (Small will be accepted)
ends with
True if the selected option’s value ends with the specified text.
Show if Size option ends with l (Medium Small will be accepted)
greater than
True if the selected option’s numeric value is higher than the entered number.
Show if Quantity option is greater than 5.
less than
True if the selected option’s numeric value is lower than the entered number.
Show if Quantity option is less than 3.
has any value
True if the selected option has any value selected or entered.
Show if Custom Text option os input.
has no value
True if the selected option is empty or not selected.
Show if Custom Text option hasn't been input
Last updated