Rule

Redundant entry

A form should not ask for the same information twice.

Rule
redundant-entry
WCAG 2.2
3.3.7 Redundant Entry (opens in a new tab) (Level A)
Severity
Moderate

What it checks

The rule looks inside each <form> for two fields that declare the same autocomplete purpose, such as two fields with autocomplete="email": a form asking for the same information twice. Only fields a user can type into count, so hidden, disabled, read-only and undisplayed fields are skipped. Password and one-time code fields are left out, since re-entering a password to confirm it is the criterion's own security exception. Purposes in different sections, such as shipping street-address and billing street-address, are different information and do not pair up.

When a person decides

The rule never fails. A second field for the same information is sometimes a deliberate confirmation, which WCAG allows when re-entry is essential, so a person needs to decide whether the repeat is needed here.

Example

Sent to review

<form action="/register">
  <label for="email">Email</label>
  <input id="email" type="email" autocomplete="email">
  <label for="email-again">Confirm email</label>
  <input id="email-again" type="email" autocomplete="email">
  <button>Continue</button>
</form>

Passes

<form action="/register">
  <label for="name">Full name</label>
  <input id="name" autocomplete="name">
  <label for="email">Email</label>
  <input id="email" type="email" autocomplete="email">
  <button>Continue</button>
</form>

The engine is tested against both examples.

How to fix it

Ask once. When the information was given earlier in the process, fill it in or offer it to select, and keep a second field only where re-entry is essential.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.