Skip to main content
Version: v6

Form-field has multiple autocomplete values

Form-field has multiple autocomplete values — rule summary
FieldValue
Rule codeFormField_Autocomplete_Multiple
WCAG conformance levelAA
WCAG success criterion1.3.5 Identify Common Purpose
Must be fixed at sourceNo

Description​

Form-fields may have an autocomplete attribute added to them indicating what kind of data is expected and providing a browser auto-fill capability for the user. There should only be one value provided for the autocomplete attribute but multiple values were detected.

How to fix​

The autocomplete attribute defines how autocomplete will work on each input. Use only one autocomplete type for each input.

<label for="email">Email (required)</label>
<input type="email" name="email" id="email" required autocomplete="email">

For a list of autocomplete types, refer to the W3C's definitions of input types.