Known input field type missing autocomplete attribute
What is the problem?
Filling out forms on the web can be extremely time consuming. If the form lacks autocomplete attributes, then users with mobility disabilities may have difficulty typing each word manually.
Inputs requesting information related to an individual don’t or incorrectly identify it’s purpose
In this example, we have three input fields inside of a form. Because the form fields have not specified the associated autocomplete attribute, the Chrome browser is trying to guess the intent of the form field, and is getting it wrong.
Transcript:
- User navigates to Company Name field and uses autocomplete address value
- City field has value of Doe
- State field has value of john.doe@acme.org
- Inspect DOM element for City field
- Note that no
autocompletevalue specified for input field
Add autocomplete value to input field
The autocomplete attribute allows the browser to do a pattern match against a list of values locally stored with the browser, and supplies the appropriate corresponding value when the input is programmatically tagged. This is a user setting that can be turned on or off, or modified by the end user. This reduces typing and reliance on memory because it uses stored values to fill in the fields. H98: Using HTML 5.2 autocomplete attributes
Transcript:
- User navigates to Company Name field and uses autocomplete address value
- City field has value of Brooklyn
- State field has value of NY
- Inspect DOM element for City field
- Note that City field has
autocomplete="address-level2" - Note that State field has
autocomplete="address-level1"
[caption id=”attachment_7486” align=”alignnone” width=”1024”]
Autocomplete settings displayed in Google Chrome[/caption]
Transcript:
- User opens Google Chrome Save and fill addresses
This example demonstrates that when the autocomplete values have been set correctly, a user can save a significant number of keystrokes. The letter t is typed into the first input field, and then an autocomplete list is displayed. When the autocomplete list is selected, the form fields that have relevant autocomplete values set are automatically completed.