SCR32: Client-Side Validation That Actually Works for Everyone
Patricia · AI Research Engine
Analytical lens: Risk/Legal Priority
Government compliance, Title II, case law
AI-assisted · Source-linked · Editorially reviewed · Methodology
Trust note
This article was drafted with AI assistance, reviewed against accessibility.chat editorial standards, and should be treated as research and education rather than legal advice. We prioritize primary sources and correct material errors.

Client-side validation is one of the most common form patterns on the web — and one of the most commonly broken. Most teams assume that showing a red border around a field and displaying some text nearby constitutes accessible error handling. WCAG Technique SCR32 (opens in new window) tells a different story: the architecture of how errors appear in the DOM matters as much as whether they appear at all.
This isn't a minor technical nicety. For screen reader users, keyboard navigators, and people with cognitive disabilities, the difference between a well-structured error list and an ad-hoc one is the difference between completing a form and abandoning it.
The Technique
SCR32 describes a specific pattern for client-side form validation: when validation fails, a list of error messages is inserted into the DOM above the form fields, and focus is programmatically moved to that error list. Each error message is wrapped in an anchor element whose href contains an in-page fragment link pointing to the specific field that failed.
This is the critical architecture: errors at the top, focus moved there, links back to the offending fields. Not a tooltip. Not an inline message that appears below a field while focus stays somewhere else. A navigable, focused, linked error summary.
The technique supports two WCAG 2.2 (opens in new window) success criteria:
- 3.3.1 Error Identification (opens in new window) (Level A) — sufficient technique
- 3.3.3 Error Suggestion (opens in new window) (Level AA) — advisory
3.3.1 is a hard legal floor. If an input error is automatically detected, the item in error must be identified and the error described to the user. SCR32 is one of the W3C's documented sufficient techniques for meeting that requirement.
Why This Matters
Consider what happens without this pattern. A user submits a form. JavaScript catches validation failures and displays inline messages next to each broken field — but focus doesn't move. A sighted user can scan the page and spot the red indicators. A screen reader user, depending on their setup and the page's live region configuration, may hear nothing at all. They're left wondering whether the form submitted successfully or failed silently.
Keyboard users face a related problem. If errors appear below fields (common in many UI frameworks), a keyboard user tabbing through the form may not encounter them in a logical order. They could tab past an error without ever reading it.
For users with cognitive disabilities, the challenge is different but equally real: scattered inline errors require the user to hold multiple pieces of information in working memory while navigating a form. A consolidated error list at the top of the form — with plain-language descriptions and direct links to each problem — reduces that cognitive load significantly.
The anchor-link pattern in SCR32 is doing real work here. It's not decorative. Each error message is a navigable link that takes the user directly to the field they need to fix. That's a meaningful interaction design choice, not boilerplate.
How It Works
The W3C's example shows the HTML structure clearly. The form includes an empty container div above the fieldsets:
<form id="personalform"> <div class="validationerrors"></div> <fieldset> <legend>Personal Details</legend> <!-- form fields --> </fieldset></form>When validation fails, JavaScript populates that container with a structured error list and shifts focus to it:
<div class="validationerrors"> <h2>Errors in Submission</h2> <ul> <li> <a href="#forename">Please enter your forename</a> </li> <li> <a href="#email">Please enter a valid email address</a> </li> </ul></div>The JavaScript then calls focus() on the error container or the heading within it, ensuring the screen reader announces the error summary immediately after form submission fails.
One architectural note the W3C document is explicit about: this technique is only sufficient when scripting is relied upon for conformance, or when server-side validation is also in place. If JavaScript is disabled, client-side validation won't fire. Any production implementation needs a server-side fallback that returns the page with equivalent error information. This is not optional — it's a conformance boundary.
Applying This
In code review, look for three things: (1) Is focus explicitly moved to the error region after submission failure? (2) Are error messages linked to their corresponding fields? (3) Is there a server-side fallback? If any of these are missing, the implementation doesn't meet SCR32's pattern regardless of how the errors look visually.
In automated testing, tools like Axe or WAVE can catch some error identification failures — missing aria-describedby connections, unlabeled inputs — but they cannot reliably detect whether focus moves correctly after failed submission. As our research on automated testing methodology documents, automated tools catch at most 37% of real accessibility barriers. Form validation behavior under error conditions is almost always in the other 63%.
In design, the error summary pattern should be specified in the design system, not left to individual developer judgment. If your design system's form component doesn't include an error summary state with focus management, that's a gap worth addressing at the system level — not field by field.
Quick win vs. longer fix: If your existing forms use inline-only error messages with no focus management, the quickest improvement is adding tabindex="-1" to the error container and calling .focus() on it after validation fails. That alone will dramatically improve the screen reader experience. The anchor-link pattern is the complete implementation and worth doing right, but focus management is the highest-priority fix.
Testing this manually: Use a screen reader (NVDA + Firefox, or VoiceOver + Safari) and submit a form with intentional errors. If the screen reader doesn't announce the error summary immediately, focus management is broken. Then verify each error message links correctly to its field.
CORS Perspective
From a risk and legal priority standpoint, 3.3.1 Error Identification is a Level A requirement — the lowest rung of WCAG conformance and the hardest to defend against in litigation. Forms are high-stakes interaction points: they're how users apply for services, submit complaints, access benefits, and complete transactions. A government agency or covered entity whose forms fail 3.3.1 isn't just facing a technical violation — it's creating a documented barrier to equal access at exactly the point where equal access matters most. The compliance fragmentation problem means teams often implement error handling inconsistently across a site because there's no system-level standard. SCR32 gives development teams a concrete, W3C-documented pattern to standardize on — which is both the right answer for users and a defensible position under 28 CFR Part 35 (opens in new window) for Title II entities.
About the Patricia lens
A risk and legal lens. Frames findings around regulatory exposure, drawing on Title II obligations, published case law, and government compliance requirements.
Patricia is an AI analyst lens, not a human staff member. It helps frame this article through a consistent accessibility perspective.
Specialization: Government compliance, Title II, case law
View all articles using this lens →Primary source reviewed: https://www.w3.org/WAI/WCAG22/Techniques/client-side-script/SCR32 (opens in new window)
Transparency Disclosure
This article was drafted with AI assistance and reviewed against our editorial methodology. We disclose that process so readers can judge the work clearly.