The Checkout Error Summary: Put the List at the Top and Link Every Error
A shopper using a screen reader submits your checkout, hears the page reload, and gets silence. The errors are marked in red, beside the fields, in a colour they cannot see and text their reader never announced. That is the single most common way accessible checkouts fail, and it fails at the exact moment the shopper is trying to pay you.
The fix is a pattern, not a redesign. An error summary appears at the top of the form, focus moves to it, and each listed error is a link that takes the shopper straight to the field. It is cheap to build and it is what the criteria point at.
What the criteria actually require
WCAG 2.2 Success Criterion 3.3.1, Error Identification, at Level A, says that when an input error is detected automatically, the item in error is identified and the error is described to the user in text. Red borders and icons alone do not meet it. Criterion 3.3.3, Error Suggestion, at Level AA, goes further: when the system knows the correction, it should suggest it, like naming the date format the card expiry field expects.
Neither criterion mandates a summary box by name. The summary is the reliable way to satisfy them in a long form, because a screen reader user otherwise has to hunt field by field for messages they may never encounter. WebAIM's guidance on forms makes the same point: errors must be programmatically tied to fields and announced, not merely shown.
Building the summary so it works
On submit, if errors exist, render the summary as a heading plus a list at the top of the form, give it tabindex of minus one, and move focus to it. Each list item is a link whose target is the field's id, and activating it moves focus into the field, not just the scroll position. The field itself carries aria-describedby pointing at its own error message, and aria-invalid set to true.
Keep the messages specific. Card number incomplete is actionable. Invalid input is not. And preserve everything the shopper already typed: clearing a long form on error is an accessibility failure wearing a validation costume, because it multiplies the work for the users least able to redo it quickly.
Testing it the way users hit it
Test with keyboard only first. Submit an empty checkout, confirm focus lands on the summary, tab through the links, and confirm each one puts you inside the right field with its error described. Then run one pass with a screen reader, NVDA or VoiceOver, and listen to what is announced on submit.
Count the errors your summary lists against the fields actually marked. A summary that lists three errors on a form showing five marked fields is worse than none, because it teaches the shopper the summary cannot be trusted. The two lists must be generated from the same validation result, never maintained separately.
Related reading
These earlier guides go deeper on connected questions: Checkout Timeout Warnings: Warn Before the Session Eats the Cart, Cart Drawer Focus Traps: A Keyboard Check That Takes Five Minutes, and Gift Card Balance Checks: The Result Nobody Announces.
Frequently asked questions
Does WCAG require an error summary at the top of a form?
Not by name. WCAG 2.2 Criterion 3.3.1 requires each error to be identified and described in text, and 3.3.3 requires correction suggestions where the fix is known. A linked summary at the top is the most reliable way to meet both in a long checkout form.
Should focus move to the error summary?
Yes. Moving focus to the summary on submit is what makes it work for screen reader and keyboard users. Without the focus move, the summary exists visually but many assistive technology users will never find it.
What makes a good error message in a checkout?
A message that names the field and the fix, such as an incomplete card number or the expected expiry date format. Vague messages like invalid input fail the spirit of Criterion 3.3.3, which expects a suggestion when the correction is known.
Should the form clear fields when validation fails?
No. Preserve everything the shopper entered and only ask them to fix the fields in error. Clearing the form multiplies work for everyone and hits users of assistive technology hardest.