WCAG 3.2.2: On Input
Understanding WCAG 3.2.2: On Input (Level A)
WCAG 3.2.2, known as "On Input," is a critical success criterion under the principle of Operable. It mandates that when a user interacts with a form control or any user interface component, changing its setting or value should not automatically trigger a "change of context." The user must explicitly initiate such a change, or be clearly warned about the automatic behavior beforehand.
The core purpose of this criterion is to ensure predictability and control for all users, preventing unexpected shifts in content, focus, or navigation that can disorient and frustrate, especially those with cognitive, motor, or vision impairments.
What is a "Change of Context"?
According to the WCAG glossary, a "change of context" is a significant change in the Web page that, if made without user awareness, can disorient the user. Examples include:
Simply updating a small part of the page (e.g., showing an error message, updating a live counter) without moving focus or significantly altering the layout is generally NOT considered a change of context under this criterion, provided it doesn’t disorient the user.
Why WCAG 3.2.2 Matters for Accessibility
Adhering to WCAG 3.2.2 is fundamental for creating an inclusive and predictable user experience. Unexpected changes can severely impact various user groups:
In essence, this criterion champions user control, ensuring that the user, not the system, dictates when significant changes occur on a web page.
Success Criterion 3.2.2: On Input (Level A)
The official wording for this success criterion is:
Changing the setting of any user interface component does not automatically cause a change of context unless the user has been advised of the behavior before using the component.
Key Terms Explained:
Practical Guidelines for Compliance
To ensure your web content meets WCAG 3.2.2, follow these practical guidelines:
Examples of Correct and Incorrect Implementations
Incorrect Implementations
These examples show common violations of WCAG 3.2.2.
In both incorrect examples, merely changing the value of the input field (selecting an option or typing a character) causes an automatic context change (page reload or navigation) without explicit user confirmation, violating 3.2.2.
Correct Implementations
These examples demonstrate how to comply with WCAG 3.2.2.
In the correct examples, the dropdown uses a submit button. The text input only filters content on the same page without navigating or submitting. The checkbox merely toggles a section’s visibility on the current page, which is not considered a change of context. These updates do not disorient the user or unexpectedly shift their focus.
Best Practices and Common Pitfalls
Best Practices
Common Pitfalls
Conclusion
WCAG 3.2.2 "On Input" is vital for creating predictable and user-friendly web interfaces. By ensuring that user interface components do not automatically trigger context changes upon input, we empower users with control, reduce cognitive load, and prevent disorientation. Adhering to this criterion significantly improves the accessibility and usability of web forms and interactive elements for everyone, fostering a more inclusive digital environment.
Related posts
- WCAG 5.2.3: Complete processes
- WCAG 5.2.4: Only Accessibility-Supported Ways of Using Technologies
- WCAG 5.2.5: Non-Interference
- WCAG 5.3.1: Required elements of the conformity declaration
- WCAG 5.3.2: Optional Components of a Conformance Claim
Still looking for answers?
Ask our experts using online chat