Skip to content

Conditional options

Free from 1.12.0. Rules that show or hide a question work in every build, with no limit on how many you write. Rules that compare a number, is more than, is less than and is exactly, are part of AddOnBoss Pro.

A conditional rule shows a question only when an earlier answer calls for it. Thread colour only matters once someone picks embroidery. The page stays short and clear.

Free add-ons with conditional logic. A gift box, a name for the label, and a message box that appears once gift wrap is ticked. Watch on YouTube
  1. Edit the product and open Product options.
  2. Open the set, field or upload that should wait, such as Your artwork file.
  3. Press Edit rule.
  4. In the first box, keep Available only when.
  5. Pick the earlier question, such as Artwork.
  6. Pick how to test it, such as is, then the answer, such as Upload my artwork.
  7. Press Done, then Update.

The rule reads back as a sentence: “Available only when Artwork is Upload my artwork.”

The rule editor on an artwork upload field. The sentence reads Available only when PRINTED TEE Artwork is Upload my artwork, with Done. Below are the boxes Available only when, then PRINTED TEE Artwork, is, Upload my artwork, with + Add another condition and Or when. Under What the customer sees, two panes: with the artwork question unanswered, the field is not shown; answered, it is shown.
The upload waits until the customer picks Upload my artwork.

What the customer sees shows the field both ways, before and after the answer.

A rule can point at an option set or at a field. Pointing at a tick box lets the box govern something, such as “Hidden when Use my own artwork is ticked”.

The first box sets the direction:

  • Available only when. The question stays off the page until the rule is met.
  • Hidden when. The question is there from the start and goes when the rule is met.

Choose always (no rule) in the question box to remove a rule.

An option set can be tested with:

  • is and is not, for one answer.
  • is any of, for a short list. “Occasion is any of Birthday, Anniversary” is one condition, not three rules.
  • is answered, for any answer at all.

Where customers pick several choices, the test reads includes or does not include.

A field has its own words. A tick box is ticked, an upload has a file, and a text box is filled in.

A number field can also be tested with is more than, is less than and is exactly. “Quantity is more than 50” can reveal a bulk artwork note that someone ordering two never sees.

Press + Add another condition to add a condition that must also be true. Press Or when… to add a second group, where either group is enough.

So one rule can say “Finish is Embroidered and Quantity is more than 25, or when Finish is any of Printed, Vinyl”.

A rule can only read a question asked above it. If the question you want is below, drag it higher. The editor tells you which one to move.

If you remove the trigger

The rule pauses. It keeps what it said, the question shows, and the editor says why. Point it at a new question, or clear the rule. A rule never quietly starts counting as met.

The dependent question isn’t on the page until it applies. Here a printed T-shirt asks three things, and the count reads 0 of 3 chosen.

A printed T-shirt product page asking for colour, size and artwork, each marked Required. There is no file upload on the page, and the count reads 0 of 3 chosen.
Before a pick: no upload on the page.

When the customer picks Upload my artwork, the upload appears underneath. The count becomes 1 of 4 chosen, and the answered question no longer says Required. Pick another answer and the upload goes again.

The same page after Upload my artwork is picked. The artwork question shows a tick and no Required tag. A Your artwork file upload box, marked Required, has appeared under it, and the count reads 1 of 4 chosen.
After Upload my artwork: the upload appears.

The count only counts required questions. Customers never see your rule. They see the question when it applies, and nothing when it doesn’t.

While a question is hidden, nothing in it is charged and it’s never required. Anything already picked or typed in it clears until it shows again.

This holds when the order is placed too, not just on the page. A customer can’t be charged for, or blocked by, a question that doesn’t apply.

The same rule works on an option set, a field and a file upload. An upload can wait for a printed finish. A thread colour can wait for embroidery.

The quantity grid orders every colour and size on one line. That changes what a rule can read.

  • A rule that reads a field works as normal. The field is asked once for the whole grid.
  • A rule that reads an option set stands down. There’s no single pick to read, so the question is always offered.

A printed board offers a Finish set with Plain and Printed. An Upload your artwork field and a Print area set both have the rule “Available only when Finish is Printed”.

A customer buying a plain board never sees them, and isn’t charged for them. A customer who picks Printed sees both and fills them in. One product serves both.

Was this page helpful?