Form-field should utilize the autocomplete attribute
| Field | Value |
|---|---|
| Rule code | FormField_Autocomplete_Missing |
| 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. We determined that this form-field is missing an autocomplete value. View the full list of possible autocomplete attributes for form-fields here: https://www.w3.org/TR/WCAG21/#input-purposes
How to fix
Review each <input> form field's purpose, and review the list of available autocomplete values.
If the field has an autocomplete option available, add the autocomplete attribute with the appropriate value.
<label for="full-name">Full name</label>
<input type="text" name="full-name" id="full-name" autocomplete="name">