Reviewed November 14, 2026
Form Errors a Screen Reader Actually Announces
When a form field fails validation, the error message must be linked to the field with aria-describedby, and the field must be marked aria-invalid="true". Without those two attributes, a screen reader user submits the form, the page shows a red border and a message, and the user hears nothing. They do not know which field failed, or why, or what to fix. The fix is two attributes in the theme code, and it is the difference between a usable form and a wall.
Submit a form with an empty required field and watch what happens. A red border appears. A message appears below the field. A sighted user reads it, fixes the field, and moves on. A screen reader user hears nothing. The page changed visually, and the screen reader was never told.
That silence is the most common form accessibility failure on Shopify stores, and it is also one of the cheapest to fix. Two attributes, aria-describedby and aria-invalid, connect the error message to the field, and the screen reader announces both. The work takes minutes per form. The barrier it removes blocks every checkout, every newsletter signup, and every contact form on the store.
Why the red border is not enough
WCAG 2.1 requires that errors be identified in text, and that the identification be programmatically determinable, which means the screen reader has to be able to find it, not just the eye. A red border is color alone, which fails WCAG 1.4.1, use of color, on its own. A message below the field is text, but if it is not associated with the field, the screen reader user has to hunt for it, and on a long checkout form, hunting means guessing.
The failure shows up in the places that matter most. The checkout discount code field, the shipping address form, the account creation form, the newsletter signup. Each one has required fields, each one can fail validation, and each one fails silently for a screen reader user when the error is not associated. The customer tries again, fails again, and leaves, and the store sees an abandoned checkout with no explanation.
The two attributes, and how they work
aria-describedby links the field to the error message by ID. The input gets aria-describedby="email-error", and the error message element carries id="email-error". When focus lands on the field, the screen reader announces the label, then the error message. The user hears "Email address, invalid entry, please enter a valid email address" in one pass, instead of hearing nothing and wondering why the form will not submit.
aria-invalid="true" marks the field as failed, so the screen reader announces the invalid state when the user reaches it. Set it when validation fails, remove it when the field is corrected. Together, the two attributes give the user everything a sighted user gets from the red border and the message: which field, what is wrong, and what to do about it. The implementation is a few lines in the theme form templates, and most Shopify themes need it added by hand.
The pattern to copy
One, every required field has a visible label, not just placeholder text, because placeholder text disappears when the user types. Two, every error message has a unique ID and is linked to its field with aria-describedby. Three, the field gets aria-invalid="true" on failure and the attribute is removed on correction. Four, focus moves to the first field with an error after a failed submit, so the user lands on the problem instead of at the top of the page.
Test it the same way you test anything else: turn on NVDA or VoiceOver, submit the form empty, and listen. You should hear the error announced for each failed field, and focus should land on the first one. If you hear silence, the association is missing. This is a five-minute test that catches a barrier on every form in the store, and it is worth running after every theme change, because theme updates overwrite form templates without warning.
Related reading
For the background behind “Form Errors a Screen Reader Actually Announces”, these earlier guides help: Test Your Store With a Screen Reader Before a Customer Has To, Accessibility Overlays: The FTC Fine, the Lawsuits, and What They Actually Do.
Frequently asked questions
What does aria-describedby do?
It links a form field to its error message by ID, so a screen reader announces the error when focus lands on the field. Without it, the error message is visible text the screen reader never associates with the field.
What does aria-invalid do?
It marks a field as failed validation, so the screen reader announces the invalid state. Set aria-invalid="true" when validation fails and remove it when the field is corrected.
Is a red border enough to show a form error?
No. A red border is color alone, which fails WCAG 1.4.1, and it is invisible to a screen reader. The error must be identified in text and linked to the field programmatically with aria-describedby.
Do I need a label if the field has placeholder text?
Yes. Placeholder text disappears when the user types, so it cannot serve as the label. Every field needs a visible, persistent label, and the error message needs its own association through aria-describedby.