R

RatedWithAI

WCAG guidance

Scan your site

WCAG 2.1

3.2.2 On Input

Level A success criterion

Changing a form control's value should not automatically cause a change of context unless the user is warned beforehand.

Why it matters

Automatic submissions or navigations when typing or selecting options can cause users to lose work or become disoriented.

Common violations

  • Select menus that navigate immediately on change
  • Search fields that submit on every keystroke
  • Radio buttons that auto-submit forms
  • Checkboxes that trigger page reloads

Code examples

Bad

<select onchange="this.form.submit()">...</select>

Good

<select name="category">...</select>
<button type="submit">Apply</button>

How to fix

Provide explicit submit buttons for form actions. If auto-submission is necessary, warn users in advance with clear instructions.

Related criteria

Related resources

Scan your site

Check your WCAG coverage in minutes

Start a free scan