Form-field has multiple autocomplete values
| Field | Value |
|---|---|
| Rule code | FormField_Autocomplete_Multiple |
| WCAG conformance level | AA |
| WCAG success criterion | 1.3.5 Identify Common Purpose |
| Must be fixed at source | No |
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.