• Success Criterion 3.2.2
  • Conformance level A

Toggle Switch That Immediately Saves and Redirects the User

3.2.2 — On Input

Scenario

Setting

A fashion e-commerce site's checkout page

What’s wrong

Toggle switches immediately saving+redirecting.

Example

<select onchange="location.href=this.value">

Why it matters

Keyboard and screen-reader users, and people who need predictable form behavior.

How to test

Flip a toggle switch: if it immediately saves and redirects elsewhere with no warning, it fails.

How to fix

Changing a field's value must not navigate, submit, close, or change context unless the user was told beforehand or explicitly confirms.

<select onchange="updatePreview()"></select>
<button onclick="navigate()">Go</button>

Changing a value should update state, not silently navigate — let the user confirm with an explicit action.

Outcome

On a fashion e-commerce site's checkout page, this barrier is gone for keyboard and screen-reader users — they no longer have to work around this.

Who is affected

Keyboard and screen-reader users, and people who need predictable form behavior.

Learn more