Form Fields That Trigger an Unexpected Context Change
WCAG Focus: WCAG 3.2.2 (A)
Auto-tabbing between phone number segments, auto-submitting a form as soon as a radio button is clicked, or redirecting the browser on field change all surprise visitors who expect to review their entry and press Submit manually.
Why This Pattern Violates WCAG
WCAG 3.2.2 On Input (Level A) states that changing the setting of any user interface component must not automatically cause a change of context unless the user has been advised of the behavior beforehand.
Code Comparison
Inaccessible Auto-Submitting Radio Input
<input type="radio" name="plan" value="pro" onchange="this.form.submit()">
Compliant Input With Explicit Submit Button
<input type="radio" name="plan" value="pro">
<button type="submit">Apply Plan</button>
How to Fix It in WordPress
- Remove auto-submit and auto-focus-jump scripts from form inputs.
- Provide a clear submit or apply button so users remain in full control of when changes take effect.
Finding This Issue Automatically
Interactive filter widgets and custom calculators often attach context-changing scripts directly to form controls. The WP ADA Compliance Check plugin flags form fields rigged to trigger unexpected context changes so keyboard and screen reader users never get hijacked mid-form.
WCAG References & Supporting Materials
WCAG Success Criteria
Supporting Documentation & Guides
- W3C Failure F36: Automatically submitting a form without prior warning — Covers select jump menus and form controls that change context unexpectedly on input.
- W3C Technique H84: Using a submit button with a select element — Requiring explicit user confirmation instead of onchange page redirects.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

