Cart and checkout · Article 9 of 9

Form fields and error messages: making checkout easy to fill in

Put labels above fields and keep them visible, mark required and optional fields, and support browser autofill everywhere. Show the right phone keyboard, accept any reasonable format, never delete what shoppers typed, and prefill what you already know. Check fields as they're finished, write errors that say exactly what to fix, skip CAPTCHAs, and keep newsletter sign-up unticked.

In this article · 13 tips
  1. Small fields, big impact
  2. 1Put labels above fields and keep them visible
  3. 2Say which fields are optional, not only which are required
  4. 3Support browser autofill on every field
  5. 4Show the right phone keyboard for each field, with no autocorrect or capitals in email
  6. 5Don't block characters or formats; format input for the shopper
  7. 6Never delete what the shopper typed
  8. 7Prefill what the shopper already gave you
  9. 8Pick the right control for each choice; avoid custom dropdowns
  10. 9Space radio options apart and make labels clickable
  11. 10Check fields as the shopper finishes each one, and avoid "Apply" buttons in forms
  12. 11Write error messages that say exactly what to fix, next to the field, and take shoppers to them
  13. 12Skip CAPTCHAs, let Enter submit, and explain unusual fields
  14. 13Leave the newsletter box unticked
  15. FAQ

In short

  • Most form problems are small and invisible in analytics, but they add up to abandoned checkouts.
  • Autofill is the biggest speed-up on phones. It only works if fields are set up for it.
  • An error message should tell the shopper exactly what to change, next to the field.

Small fields, big impact

These tips apply to every form on a store: checkout, account sign-up, contact, returns. On Shopify, checkout fields are handled by the platform, so the tips matter most for your theme's forms (sign-up, contact, newsletter) and for any form an app adds. If you're on another platform, they apply to checkout too.

1Put labels above fields and keep them visible

Put labels above the fields and keep them there. Placeholder text vanishes as soon as the shopper types.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

Jane Doe
12 Oak Street
Apartment, suite
02139
Placeholder labels disappear once filled. Was "02139" the ZIP or the apartment? Shoppers can't check.

✓ Do this

9:41

STORE

🔒 Secure checkout

Full nameJane Doe
Address12 Oak Street
ZIP code02139
A label above every field, always visible, so shoppers can review what they entered.

Why it matters

Labels inside fields (placeholders) disappear as soon as shoppers start typing, so they can't check what a field was for. Labels to the left squeeze fields on phones. Labels above fields are the fastest to read and work at every screen size.

How to do it

  • Place each label above its field, always visible.
  • Use placeholder text only for format examples, not as the label.
  • Floating labels that shrink above the field are acceptable if the label stays readable.

On ShopifyBuilt in

Shopify checkout uses floating labels. Check your theme's forms and app forms for placeholder-only labels.

Quick test: Do all form fields have labels that stay visible while typing?

2Say which fields are optional, not only which are required

Mark the optional fields. A star on nearly everything makes shoppers fill in what they could skip.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

Full name *
Company *
Address *
Phone *

* required

Stars everywhere, and the one optional field looks the same. Shoppers fill everything to be safe.

✓ Do this

9:41

STORE

🔒 Secure checkout

Full name
Company (optional)
Address
Phone (optional)
"(optional)" on the few fields shoppers can skip. Everything else is clearly needed.

Why it matters

An asterisk alone isn't understood by everyone, and when only required fields are marked, shoppers fill optional ones "just in case". Marking optional fields "(optional)" is clearer.

How to do it

  • Mark optional fields with "(optional)" in the label.
  • If you use asterisks for required fields, explain them at the top of the form.
  • Better: remove optional fields you don't need.

On ShopifyBuilt in

Shopify checkout marks optional fields. Check your theme and app forms.

Quick test: Is it clear which fields are required and which are optional?

3Support browser autofill on every field

Browser autofill can fill a whole checkout in one tap, if every field is set up for it.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

Full name
Address
City

Autofill doesn't offer anything here

Fields the browser doesn't recognize. Shoppers type everything their browser already knows.

✓ Do this

9:41

STORE

🔒 Secure checkout

Full name

⌕ Jane Doe · 12 Oak St, Boston

⌕ Jane Doe · 200 Main St, Cambridge

Address
The browser offers saved details on the first field. One tap fills name, address, city and ZIP.

Why it matters

Autofill fills names, addresses, emails and cards in one tap, and saves more time than any other form improvement, especially on phones. It only works when fields tell the browser what they are.

How to do it

  • Add the right autocomplete attribute to every field (name, email, tel, street-address, postal-code, cc-number…).
  • Use standard field names and types.
  • Test autofill on Chrome and Safari on a phone.

On ShopifyBuilt in

Shopify checkout supports autofill. Add autocomplete attributes to custom forms in your theme.

Quick test: Does autofill fill every field correctly on phones?

4Show the right phone keyboard for each field, with no autocorrect or capitals in email

Show the right keyboard for each field: numbers for phone and card, the @ keyboard for email.

Phones

✕ Avoid

9:41

STORE

🔒 Secure checkout

Phone617

qwertyuiop

asdfghjkl

⇧zxcvbnm⌫

123go

A letter keyboard for a phone number. Shoppers switch keyboards on every field.

✓ Do this

9:41

STORE

🔒 Secure checkout

Phone617 555

123

456

789

+*#0⌫

A number pad for phone and card numbers, an email keyboard with @ for email, and no auto-capitals.

Why it matters

A full text keyboard for a phone number, or autocorrect turning an email address into a word, makes typing slow and error-prone. Phones can show the right keyboard for each field.

How to do it

  • Use type="email" for email, type="tel" for phone numbers, and inputmode="numeric" for postcodes and card numbers.
  • Turn off autocorrect and auto-capitalization for email, names in some cases, and codes.
  • Test every field on iPhone and Android.

On ShopifyCode

Shopify checkout handles this. For theme forms (newsletter, contact, account), set the input types and attributes in the templates.

Quick test: Does each field show the right keyboard, with no autocorrect on email?

5Don't block characters or formats; format input for the shopper

Accept numbers the way people write them, with spaces, dashes or brackets. Clean them up yourself.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

Phone(617) 555-0142Only numbers are allowed
The shopper typed their number the normal way and the form refuses it.

✓ Do this

9:41

STORE

🔒 Secure checkout

Phone(617) 555-0142

Any format works

Any common format is accepted. The store strips the extra characters behind the scenes.

Why it matters

Fields that reject spaces in a phone number or dashes in a card number make shoppers guess the "right" format. Accepting any reasonable input and cleaning it up behind the scenes is easier for everyone.

How to do it

  • Accept spaces, dashes and brackets in phone and card numbers; strip them before saving.
  • Format input as it's typed where it helps (card number groups, date slashes), adapted to the shopper's country.
  • Never silently cut off what was typed beyond a length limit; show the limit.

On ShopifyBuilt in

Shopify checkout accepts common formats. Check app forms and theme forms.

Quick test: Do fields accept any reasonable format instead of rejecting it?

6Never delete what the shopper typed

Never clear a field the shopper has filled in. After an error, keep everything and point at what to fix.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

Please correct the errors below.

Full name
Address
ZIP codeRequired
One wrong ZIP, and the whole form is empty again. Many shoppers don't type it all a second time.

✓ Do this

9:41

STORE

🔒 Secure checkout

Full nameJane Doe
Address12 Oak Street
ZIP code0213ZIP code needs 5 digits
Everything stays. Only the ZIP is marked, with what's wrong.

Why it matters

Forms that clear on an error, or empty fields when shoppers go back a step, force retyping. It's one of the most annoying things a form can do, and a common reason to give up.

How to do it

  • Keep every entered value after a validation error; highlight only the fields that need fixing.
  • Keep values when shoppers go back and forward between steps.
  • Don't auto-clear a field when it's focused.

On ShopifyBuilt in

Shopify checkout keeps entered values. Test your theme's forms by submitting with an error.

Quick test: Does every form keep what was typed after an error or going back?

7Prefill what the shopper already gave you

Don't ask for anything twice. Carry details forward from the cart, the account or an earlier step.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

You entered your email in the cart

EmailEmail
Full name
The shopper typed their email in the cart for shipping rates, and checkout asks for it again.

✓ Do this

9:41

STORE

🔒 Secure checkout

Emailjane@email.com

From your cart · Change

Full name
Filled in from earlier, with an easy way to change it.

Why it matters

If the shopper entered their email in the cart, a newsletter or a previous order, asking for it again feels careless.

How to do it

  • Carry forward details already entered (email from cart, address from account).
  • Prefill the country and currency from the shopper's location.
  • Let shoppers change any prefilled value.

On ShopifyBuilt in

Shopify checkout prefills from customer accounts, Shop Pay and checkout links that include details.

Quick test: Are details the shopper already gave prefilled?

8Pick the right control for each choice; avoid custom dropdowns

Pick the right control: radio buttons for a few choices, checkboxes for yes/no, and no fancy dropdowns.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

Shipping method▾
Gift? Choose…▾
Newsletter: Choose…▾
Dropdowns for two-option choices. Every answer takes two taps and hides the options.

✓ Do this

9:41

STORE

🔒 Secure checkout

Standard · Tue, Nov 25$6.95
Express · Fri, Nov 21$14.95
This is a gift
Radios show every option at once. A yes/no question is a single checkbox.

Why it matters

Dropdowns hide options, and custom-built dropdowns often break keyboard use, autofill and screen readers. Short choices are faster as radio buttons, and a choice with one option isn't a choice.

How to do it

  • Use radio buttons for two to about five options, so all are visible.
  • Use a native select for long lists (countries, states), and let typing jump to an option.
  • Use a checkbox for a single yes/no that's optional.
  • Preselect or remove options when only one is possible.
  • Avoid custom-styled dropdowns unless they fully support keyboard, typing and screen readers.

On ShopifyCode

Shopify checkout handles this. In theme and app forms, prefer native controls.

Quick test: Does each choice use the simplest suitable control, with no single-option choices?

9Space radio options apart and make labels clickable

Give each option its own row and make the whole row tappable, so nobody picks the wrong one.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

Delivery: ○ Standard ○ Express ○ Next day

Tiny circles, tight together

Small radio buttons squeezed into one line. On a phone it's easy to hit the wrong one.

✓ Do this

9:41

STORE

🔒 Secure checkout

Standard$6.95
Express$14.95
Next day$24.95
Separate rows with borders. Tapping anywhere on the row selects it.

Why it matters

Radio buttons crowded together make it unclear which label belongs to which button, and tiny buttons are hard to tap. Clicking the label should select the option.

How to do it

  • Give each option enough space, or a bordered row, so it's clear which label goes with which button.
  • Make the whole label (and the row) clickable.
  • Show the selected option clearly.

On ShopifyBuilt in

Shopify checkout delivery and payment options are full clickable rows.

Quick test: Are radio options clearly separated, with clickable labels?

10Check fields as the shopper finishes each one, and avoid "Apply" buttons in forms

Check each field when the shopper leaves it, not while they're still typing, and skip the separate "Apply" buttons.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

ZIP code021Invalid ZIP code

Still typing…

Phone
Apply
An error appears while the shopper is mid-way through typing, and fields need their own Apply buttons.

✓ Do this

9:41

STORE

🔒 Secure checkout

ZIP code02139
Phone
The ZIP is checked when the shopper moves on, with a quiet tick when it's right.

Why it matters

Finding out about five errors only after pressing Continue sends shoppers back up the form. Checking each field as it's completed lets them fix it while it's fresh. Extra "Apply" buttons next to fields add a step people miss.

How to do it

  • Validate each field when the shopper leaves it, not while they're still typing.
  • Show a success state for tricky fields (email, postcode) when they're valid.
  • Apply values automatically; use an Apply button only for discount codes.

On ShopifyBuilt in

Shopify checkout validates fields inline. Check theme and app forms.

Quick test: Are fields checked as they're completed, without extra Apply buttons?

11Write error messages that say exactly what to fix, next to the field, and take shoppers to them

Error messages should sit next to the field and say exactly how to fix it.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

There was a problem with your submission.

Emailjane@email
ZIP code0213
A vague message at the top, and nothing showing which field is wrong.

✓ Do this

9:41

STORE

🔒 Secure checkout

Emailjane@emailAdd the end of your email, like jane@email.com
ZIP code02139
The message is under the field, says what's missing and gives an example. The page scrolls to it.

Why it matters

"Invalid input" tells shoppers nothing. "Enter a postcode like SW1A 1AA" tells them exactly what to do. And an error far below the visible part of the page might never be seen.

How to do it

  • Show the error next to the field, in text (not just a red border), and say how to fix it.
  • Match the message to the actual problem: missing, too short, wrong format.
  • On submit, move to the first error or show an error summary at the top with links to each field.
  • Make errors readable by screen readers (see accessible forms).

On ShopifyBuilt in

Shopify checkout shows inline, specific errors. Review the messages in your theme's and apps' forms.

Quick test: Do error messages sit next to the field and say exactly how to fix it?

12Skip CAPTCHAs, let Enter submit, and explain unusual fields

No puzzles in checkout, Enter should submit the form, and any unusual field needs a short explanation.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

Select all squares with traffic lights

Place order
A picture puzzle at the moment of paying. Some shoppers fail it, and some just give up.

✓ Do this

9:41

STORE

🔒 Secure checkout

Total$151.45

Place order · $151.45

Protected against bots, with no puzzle

Bot protection running in the background. Real shoppers never see it.

Why it matters

A CAPTCHA asks a paying customer to prove they're human at the worst moment. Forms that don't submit with Enter frustrate keyboard users. Fields shoppers don't understand ("Delivery instructions code") make them hesitate.

How to do it

  • Use invisible bot protection instead of CAPTCHA challenges in checkout and sign-up.
  • Let Enter submit the form from any field.
  • Add a short hint or tooltip (that works on tap) for any field or option that isn't obvious.

On ShopifyCheckout settings

Shopify can show a CAPTCHA on customer account and contact forms (Online Store › Preferences). Turn it on only if you get spam, and keep it off checkout.

Quick test: Is checkout free of CAPTCHAs, with Enter submitting and unusual fields explained?

13Leave the newsletter box unticked

Leave the newsletter box unticked. A pre-ticked box gets unwanted sign-ups, complaints and unsubscribes.

All stores

✕ Avoid

9:41

STORE

🔒 Secure checkout

Emailjane@email.com
Yes, send me emails, offers and partner news
Already ticked, and mixed with partner offers. Shoppers who miss it feel tricked later.

✓ Do this

9:41

STORE

🔒 Secure checkout

Emailjane@email.com
Email me new arrivals and offers (about 2 a month)
Unticked, with how often you'll write. The people who tick it actually want the emails.

Why it matters

A pre-ticked newsletter box feels like a trick, and in the EU and UK pre-ticked consent isn't valid consent. An honest opt-in with a reason to join builds a better list.

How to do it

  • Leave the newsletter box unticked by default.
  • Say what shoppers will get and how often ("New arrivals and offers, about twice a month").
  • Keep marketing consent separate from order updates.

On ShopifyCheckout settings

In Shopify's checkout settings, the email marketing checkbox can be preselected; leave it off.

Quick test: Is the newsletter box unticked, with a clear reason to join?

FAQ

Should form labels be above or beside the field?

Above. It's the fastest to read and works at every screen size.

When should forms show error messages?

When the shopper leaves a field, not while they're still typing, and again in a summary if they submit with errors.

Should I use placeholders instead of labels?

No. Placeholders disappear as shoppers type. Use visible labels and keep placeholders for format examples.

Sources

Alex Peric

Written by Alex Peric

Conversion designer. I design, redesign and build online stores, product pages and landing pages, A/B test them and show what each change earned. CXL certified in Conversion Optimization and Ecommerce Marketing, and a guest speaker on ecommerce UX at NYU School of Professional Studies.

Let's talk

Let's find out why your visitors aren't buying.

Send me the page. On the call I'll tell you what I'd fix first, what it could move, and whether I'm the right person for it.

Book a call