Conditions
A condition hides fields, options, groups or steps on the product page when its formula is true.
Click Add condition and fill in:
- Name: only shown in the app, for example
Premium material. - When this formula is true: a formula, for example
[width] > 100. True means any result other than0. - Hide these on the product page: tick the fields, options, groups and steps to hide.
Examples
Hide the rush field when the material is the one with value 3:
js
[material] = 3Hide the glossy option when the width is 1000 or more:
js
[width] >= 1000Combine with & (and) and | (or):
js
[width] > 100 & [height] > 100js
"[finish]" = "matte" | [glass] = 1How conditions work
- Conditions are checked from top to bottom, before the price formula. A later condition sees what an earlier one hid. Use the arrows to change the order.
- A hidden field counts as
0(or empty text) in formulas. - If the selected option of a dropdown is hidden, the first visible option is selected. A radio field loses its selection.
- Hiding a group hides every field in it. Hiding a step skips it and hides every group and field in it.
- There is no "show" action. To show a field only in some cases, hide it in all the other cases.
A product can have up to 50 conditions. See Calculation to change when conditions run.
