Hidden Field
A field that is invisible to the customer but submits a fixed value through the cart. Use it to attach metadata or tags to an order line item without any customer interaction.
When to use
- Tag an order with a source or campaign identifier (e.g.,
source=influencer-promo) - Attach a version or configuration identifier to every order from this option set
- Pass a fixed internal code or warehouse instruction through to the order
- Record which option set or product configuration applied to an order, for downstream fulfillment logic
General settings
| Setting | Description |
|---|---|
| Label | Admin-only label that identifies this field in the dashboard. Not shown on the storefront. |
| Default value | The fixed value that is always submitted. This is the only setting that matters for the customer-facing cart — whatever you put here is sent as the order value on every add-to-cart. |
Storefront behavior
- Completely invisible — there is no field on the product page for the customer to see or interact with
- On add-to-cart, the default value is submitted just as if the customer had typed it themselves
- The value appears in the order under the modifier name (the element’s Label), which is the only place you see it
Notes
- The Hidden Field’s value is static — it cannot vary by customer action or session. If you need a dynamic or customer-specific value, use a visible input instead.
- Hidden Fields support conditional logic — you can turn the hidden field on or off based on what the customer selects elsewhere — when it’s turned off, its value is not included on the order.
- Because the customer never sees this field, there’s no Required validation that makes sense to enforce — it’s always “filled” with the default value.