How to set up the Conditional Checkbox block
In short
Conditional Checkbox shows a tick box that reveals extra fields when the buyer ticks it. Required fields inside it must be filled before the buyer can continue.
Category
Custom Fields
Plan
Deluxe only
Where it shows
Shopify checkout
Saves to order
Attribute or metafield
✓ Applies to
- Deluxe plan only (not on Advanced)
- Shopify Plus checkout
- Any checkout position: body, after the header, or around the delivery address
✕ Doesn't apply to
- Nesting dropdowns, date pickers or other block types. Only Text Input and Checkbox can be nested
- Saving the main checkbox's own tick to the order
Deluxe plan only
Conditional Checkbox isn’t in the Advanced plan. Choosing it there opens Upgrade The Plan.
Set it up
Add a Conditional Checkbox
Go to Blocks → Create New Block → Start Fresh. Click Add block and choose Conditional Checkbox.
Write the checkbox label
Type the Label buyers see next to the box.
Add the hidden fields
Under Blocks, add a Text Input or Checkbox. A Text Input works just like the Text Input block. Set Required to Yes if it must be filled.
Save and place it
Click Done, then Save. Copy the Block ID and paste it into a Custom Block in the checkout editor. See how.
Let it stop checkout
In the checkout editor, allow the Custom Block to block checkout progress. Without this, required fields can be skipped.
Check it works
- Open checkout and tick the box. Your fields appear.
- Leave a required field empty and try to continue. Checkout stops with “Label is required”.
- Fill it in and place a test order. The value is under Additional details on the order.
Good to know
- Checkout is only blocked while the box is ticked. A required field with a Pattern must also match it.
- The ticks themselves aren’t saved, only the text typed into nested fields.
- Unticking hides the fields but keeps what was typed.
- Give every Text Input its own Name of the attribute, or one value overwrites the other.
Not working?
- Buyers skip a required field: check Required is Yes and step 5 is done.
- Only one value on the order: two fields share a name. Make each name unique.
Want to see this block in a live checkout first? See examples and use cases →
Frequently asked
Which fields can I put inside a Conditional Checkbox? +
Text Input and Checkbox. Each nested Text Input keeps its own Label, Required, storage and Validation settings.
Does it block checkout? +
Only while the box is ticked. Then every nested Text Input set to Required must have a value, and match its pattern if it has one. Unticked, the buyer can continue freely.
Is the main checkbox saved to the order? +
No. Only the values of nested Text Input fields are saved. To see who ticked the box, look for those values on the order.
What happens to values if the buyer unticks the box? +
The fields hide, but anything already typed stays saved on the cart and reaches the order. Ask buyers to clear a field before unticking if that matters for your fulfilment.