Skip to main content
Version: v6

Hidden input fields were found to contain autocomplete attributes

Hidden input fields were found to contain autocomplete attributes — rule summary
FieldValue
Rule codeFormField_Hidden_Autocomplete
WCAG conformance levelAA
WCAG success criterion1.3.5 Identify Common Purpose
Must be fixed at sourceNo

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">