Skip to content

Building options9 min readUpdated 4 August 2026

Make a field required and set answer limits

A required field stops a customer adding to cart until they answer it, and character limits keep that answer to a length you can fulfil. Both are per-field settings in the Everfield customizer. This guide covers required fields, character limits, the live counter, and where validation does not run.

Mark a field required

Required is a toggle on each individual field, off by default — every new field is optional until you change it.

  1. Open your experience in the customizer and go to the Fields tab.
  2. Expand the field you want to make compulsory.
  3. Switch on Required.
  4. Click Save, then Publish. Validation is compiled into the widget at publish time, so an unpublished change has no effect on your storefront.
The Everfield field editor with the Field type, Label and Required controls visible
1 Field type · 2 Label · 3 Required · 4 Add-on price

Required only exists on the 14 input types. The six display-only blocks — Heading, Paragraph, Divider, Spacer, Custom HTML and Size chart — collect nothing, so they have no Required toggle. See Field types.

What counts as "answered" depends on the type:

Field typeWhat satisfies Required
Text, Text area, Number, Phone, DateAnything entered
EmailA value that looks like an email address
DropdownAny choice other than the Select… prompt
Radio buttons, Swatch, Multiple choice, Product pickerAt least one selection
Toggle / switchSwitched on — off saves nothing, so it reads as blank
File / image uploadOne uploaded file
QuantityAnything, including the starting 0

File / image upload is a special case: a file input can't carry a required flag in the markup, so Everfield applies the setting from the storefront script instead — and that does not take effect on every upload field. Read the troubleshooting note at the end of this guide before you rely on it.

A required field shows a red asterisk next to its label. That asterisk is controlled by the Style tab's Visibility section — Show required (*) indicator, on by default. Turning it off hides the asterisk; the fields stay required.

What a customer sees when validation fails

Everfield checks the fields when the customer presses Add to cart on a product page, or the checkout button on a cart experience. If a check fails, the action is blocked — the item is not added, the checkout click is stopped, or, from a theme's add-to-cart popup, the customer is taken to the cart page to complete the fields — and a message appears in small red text under the field that failed, which also gets a red border. These are the exact messages:

MessageWhen it shows
This field is required.A required field left blank (every type except file upload)
Please upload an image.A required File / image upload with no file
Please enter at least N characters.Shorter than Minimum characters
Please enter at most N characters.Longer than Maximum characters
Please select at least N. / Please select at most N.A Multiple choice outside its selection limits
Please enter a valid email address.An Email value that is not an address
Please choose a later date. / Please choose an earlier date.A Date outside the range you set

An upload that is still running blocks the add too, showing Please wait for the upload to finish. under the field. On a product page your theme's Add to cart button is also disabled for the duration and the field shows Uploading…, so customers rarely reach that point; on a cart experience the checkout click is held until the upload lands.

Errors are re-checked on every attempt, so a message disappears once the customer fixes that field and tries again. Everfield blocks the add whether your theme submits the product form normally or adds to cart with its own script. On a Phone field the red border lands on the country code dropdown rather than the number box; the message underneath is still correct.

The add-to-cart popup detour

One case navigates instead of blocking in place. On themes whose add-to-cart popup offers a checkout button somewhere the cart fields cannot render (Dawn-family themes with the cart type set to Notification), Everfield sends the customer to the cart page instead: the options scroll into view, the missing required fields show their red messages, and the first empty field is focused. Everfield first checks the answers already saved on the cart, so customers who have filled everything in go straight to checkout untouched. The detour fires at most twice per browser session, never on the cart page itself, and never for experiences whose fields are all optional — a required field shown only by a conditional rule does not trigger it either. See Cart placement for the placement side of this.

Minimum and maximum characters

Minimum characters and Maximum characters are offered on two field types only: Text and Text area. They carry the placeholders "e.g. 0" and "e.g. 200".

  1. In the Fields tab, expand a Text or Text area field.
  2. Type a whole number into Minimum characters, Maximum characters, or both.
  3. Save and publish.

Maximum characters stops the customer typing past the limit in the browser, so Please enter at most N characters. is rare in practice — the browser cuts the typing off before the check has anything to catch. Minimum characters is checked only when the field has something in it: an empty box is not "too short", it is empty. Pair a minimum with Required if you want blank answers stopped too.

To limit how many choices a customer ticks rather than how much they type, use Min selections (0 = none) and Max selections (0 = unlimited) on a Multiple choice field. The maximum is also enforced as the customer ticks — once the cap is reached the remaining boxes are disabled — so Please select at most N. is a backstop; Please select at least N. is the message customers actually meet. See Choice fields and swatches.

Show a character counter

Show character counter sits with the character limits, is off by default, and is again offered only on Text and Text area. Switch it on and the customer sees a live count as they type — small grey text, right-aligned under the box.

  • With a Maximum characters value set, the counter reads 12 / 200.
  • Without one, it shows the length on its own: 12.
The Everfield field editor scrolled to the character limits and the Show character counter toggle
1 Character limits · 2 Counter

The counter does not run in the customizer's live preview — it shows a fixed 0 there. Check it on your published storefront.

Number and quantity ranges

A Number field has three range settings: Minimum value, Maximum value and Step. These compile to native browser constraints on the input, so the stepper arrows respect them, and the browser shows its own warning on submit when the options sit inside your theme's add-to-cart form and that form submits normally.

Treat them as a guide rather than a guarantee. Everfield has no number range check of its own, so on a theme that adds to cart with its own script — or when the options block sits outside the add-to-cart form — an out-of-range number can get through. If that would leave you unable to fulfil the order, use a Dropdown or Radio buttons listing the acceptable amounts.

A Quantity field does not offer those controls at all. It starts at 0 and steps by 1. Because 0 counts as an answer, marking a Quantity field Required does not force the customer to raise it above 0. They can add to cart without touching it, and 0 is saved as the answer on the order. If you need a deliberate choice, use a Dropdown or Radio buttons listing the quantities.

How validation interacts with hidden fields

A field that a conditional rule is currently hiding is skipped by validation, and its value is not sent to the cart. A hidden required field therefore never blocks Add to cart, and its answer never reaches the order.

That is deliberate — an irrelevant question should not stop the sale — but it changes what Required guarantees: an answer while the field is visible, not on every order. The value a customer typed before the field hid is kept in the browser and reappears if the rule matches again, and a value already saved on a cart line stays there even when the field is later hidden. See Show a field only when it is relevant.

Where validation does not run

  • The per-line cart editor. When a cart experience finds answers already on a cart line and shows one prefilled editor per line, no validation runs there at all — no required check, no length check, no guard on the checkout click. A customer can clear a required answer on a cart line and check out. A cart experience validates only in its ordinary mode, where the fields collect one set of answers.
  • The customizer live preview. The preview renders your fields and runs conditional rules, but not the character counter or the maximum-selections cap.
  • Anywhere the browser is bypassed. These checks run in the customer's browser as they shop. Orders you create in the Shopify admin, draft orders, and apps that post to the cart directly never run them.

Troubleshooting

Required is on but customers still add to cart without answering. Three usual causes: the experience was saved but not published, so the storefront still has the old version; a conditional rule is hiding the field, so validation skips it; or the field is a Quantity, which passes with its starting 0.

There is no red asterisk next to my required field. The asterisk is controlled separately, in the Style tab under Visibility. Switch on Show required (*) indicator. The field is required either way. If labels themselves are hidden — Show field labels in the same section — there is nothing for the asterisk to sit beside.

Required on a File / image upload does not block Add to cart. A file input carries no native required flag, so Everfield applies the setting at runtime by matching each rendered field back to your saved configuration by its id — and only fields that carry an id are matched. Fields that arrived from a starter template have one, such as the upload field in Photo Personalization; a field you added yourself in the customizer does not, so its Required setting is not enforced on the storefront. Until that changes, treat a required upload as a request rather than a block: say it in the field's Help text, and check the answer on the order before you fulfil. See Collect image uploads.

The character counter shows 0 and never moves. You are looking at the customizer preview, where the counter does not run. Publish and check the storefront.

Minimum characters is not stopping empty answers. The length check runs only on a field that has something in it. Switch on Required as well.