Hidden input fields were found to contain autocomplete attributes
| Field | Value |
|---|---|
| Rule code | FormField_Hidden_Autocomplete |
| WCAG conformance level | AA |
| WCAG success criterion | 1.3.5 Identify Common Purpose |
| Must be fixed at source | No |
Description
We detected hidden input fields that were given autocomplete attributes. Hidden input fields should not have autocomplete attributes as they are not interactive and as such, should not suggest input purposes. Assistive technologies might encounter issues when hidden form fields suggest input purposes.
How to fix
Ensure that hidden input fields do not have autocomplete attributes. These fields are not intended to be filled out by the user and should not suggest input purposes. If a hidden field has an autocomplete attribute, remove it to avoid confusing behavior with assistive technologies.
For example,
<input type="hidden" name="token" id="token">