Autocomplete valid

Moderate effort

Found on 1% of audited stores.

Add a valid, correctly matched `autocomplete` attribute to every personal-data form field so browsers and assistive technologies can autofill them reliably.

What it is

The HTML `autocomplete` attribute tells browsers (and password managers, screen readers, and autofill tools) exactly what kind of information a form field expects — for example, a shipping first name, a credit card number, or an email address. WCAG 2.1 Success Criterion 1.3.5 ("Identify Input Purpose") requires that any field collecting personal information uses one of the officially recognised `autocomplete` token values, and that the token actually matches what the field is for. If the attribute is missing, misspelled, or set to the wrong value (e.g., `autocomplete="firstname"` instead of `autocomplete="given-name"`), browsers cannot reliably autofill the field and assistive technologies cannot identify its purpose.

Why it matters

Failing WCAG 1.3.5 creates real legal and commercial risk: accessibility laws in the US (ADA), UK (Equality Act), EU (European Accessibility Act), and elsewhere increasingly require WCAG 2.1 AA compliance, and incorrect `autocomplete` is a straightforward, auditable violation. Beyond compliance, customers — especially those with motor disabilities, cognitive impairments, or anyone on a mobile device — rely on browser autofill to complete checkout quickly. Broken autofill adds friction that directly increases cart abandonment and reduces conversion rates. Fixing it is one of the fastest wins you can get on a checkout or registration form.

How to fix it

  1. Identify every form field that collects personal information (name, address, email, phone, payment details, username, password, birthday, etc.).
  2. For each field, look up the correct WCAG/HTML autocomplete token from the official list (e.g., `given-name`, `family-name`, `email`, `tel`, `street-address`, `postal-code`, `cc-number`, `new-password`, `current-password`, `bday`, etc.).
  3. Set the `autocomplete` attribute on the `<input>` (or `<select>`) element to exactly that token — the value must be a valid token and must match the field's actual purpose.
  4. Ensure the form itself does NOT have `autocomplete='off'` unless there is a specific security reason (e.g., OTP fields); that attribute blocks all autofill for the entire form.
  5. Test by opening the page in a browser, clicking into each field, and verifying the browser's autofill dropdown appears with the correct suggestion — or use an axe DevTools browser extension to re-run the `autocomplete-valid` rule.
  6. Repeat for every form on the site: checkout, registration, login, address book, and contact forms.
<input type="text"   name="first_name"  autocomplete="given-name"     placeholder="First name">
<input type="text"   name="last_name"   autocomplete="family-name"    placeholder="Last name">
<input type="email"  name="email"        autocomplete="email"           placeholder="Email address">
<input type="tel"    name="phone"        autocomplete="tel"             placeholder="Phone number">
<input type="text"   name="address1"    autocomplete="address-line1"   placeholder="Street address">
<input type="text"   name="city"        autocomplete="address-level2"  placeholder="City">
<input type="text"   name="postcode"    autocomplete="postal-code"     placeholder="Postcode / ZIP">
<input type="text"   name="cc_number"   autocomplete="cc-number"       placeholder="Card number">
<input type="password" name="password"  autocomplete="current-password" placeholder="Password">

Fix it on your platform

Pick your platform for the exact steps.

How to fix autocomplete valid on Shopify
  1. Shopify's hosted checkout fields are rendered by Shopify's own servers and already include correct autocomplete attributes — you cannot edit that HTML directly.
  2. For any custom forms you've added (contact, registration, account address), go to Online Store → Themes → your active theme → Edit code.
  3. Open the relevant Liquid template (e.g., templates/customers/register.liquid, sections/contact-form.liquid, or a custom snippet under snippets/).
  4. Find each <input> tag and add or correct the autocomplete attribute: e.g., <input type='text' name='customer[first_name]' autocomplete='given-name'>.
  5. Click Save, then verify with a browser's built-in autofill or the axe DevTools extension.
How to fix autocomplete valid on WooCommerce
  1. WooCommerce's default checkout and My Account forms are output by WooCommerce templates and already include autocomplete attributes, but themes or plugins may override them.
  2. To override safely, copy the relevant template from wp-content/plugins/woocommerce/templates/ (e.g., checkout/form-billing.php, checkout/form-shipping.php) into wp-content/themes/your-theme/woocommerce/ preserving the folder structure.
  3. Open the copied file and locate each <input> element; add or correct the autocomplete attribute using the correct HTML token (e.g., autocomplete='given-name').
  4. Alternatively, use the woocommerce_checkout_fields filter in your child theme's functions.php or a custom plugin to programmatically inject the autocomplete value into the field's attributes array.
  5. Save, clear any caching plugins, and verify with axe DevTools.
How to fix autocomplete valid on BigCommerce
  1. Go to Storefront → My Themes → your active theme → Edit Theme Files (or download the theme and edit locally).
  2. Locate the relevant template files: templates/components/account/address-fields.html, templates/pages/auth/login.html, templates/pages/account/add-address.html, or the checkout templates.
  3. For the BigCommerce Optimized One-Page Checkout (which is served from a separate hosted domain), contact BigCommerce support or use a Checkout SDK custom implementation to add autocomplete attributes.
  4. For non-hosted forms, find each <input> tag and add the correct autocomplete token (e.g., autocomplete='email').
  5. Upload/save the modified theme and preview to verify autofill works correctly.
How to fix autocomplete valid on Wix
  1. Open the Wix Editor for your site.
  2. Click on the form widget containing the field you want to fix.
  3. Wix's native form fields do not expose an autocomplete attribute in the standard Editor UI; for Wix forms (Wix Forms app), raise a feature request via Wix Support, as this is a platform limitation.
  4. If you have a Wix Studio (formerly Editor X) site with custom-coded sections, go to the Dev Mode panel, locate the input element in your custom code, and add the autocomplete attribute directly in the HTML/JSX.
  5. For third-party embedded forms (e.g., a Typeform or HubSpot form embedded via HTML embed), edit the form in the third-party tool's settings to add autocomplete attributes.
How to fix autocomplete valid on Wix Studio
  1. Open Wix Studio Editor for your site and enable Dev Mode (toggle in the top bar).
  2. Select the input element in the canvas or locate it in the Layers panel.
  3. In the Properties & Events panel on the right, switch to the Code tab; you can set element attributes programmatically using $w('#inputId').setAttribute('autocomplete', 'given-name') in the page's code file.
  4. Alternatively, open the relevant page's code file (Page Code panel at the bottom) and add $w.onReady(function(){ $w('#firstNameInput').setAttribute('autocomplete','given-name'); }); for each field.
  5. Preview the page and test autofill in the browser.
How to fix autocomplete valid on Squarespace
  1. Squarespace's built-in form blocks and Commerce checkout fields have limited direct HTML editing capabilities.
  2. For built-in Form Blocks: go to the page, click Edit on the form, then click the field to edit it — Squarespace does not expose the autocomplete attribute in the UI, so you must use a CSS/JS injection workaround.
  3. Go to Website → Pages → select the page → Settings (gear icon) → Advanced → Page Header Code Injection, or site-wide via Settings → Advanced → Code Injection.
  4. Add a small JavaScript snippet that runs on DOMContentLoaded and sets the autocomplete attribute on each input by its name or placeholder: document.querySelector('input[name="name"]').setAttribute('autocomplete','name');
  5. For Squarespace Commerce checkout (hosted), autocomplete attributes are managed by Squarespace; contact Squarespace support for compliance concerns.
How to fix autocomplete valid on Webflow
  1. Open the Webflow Designer and select the Form element on the canvas.
  2. Click on the specific Input field inside the form to select it.
  3. In the right-hand Settings panel (the gear icon), scroll to the Custom Attributes section at the bottom.
  4. Click the '+' button to add a new attribute; set the Name to 'autocomplete' and the Value to the correct token (e.g., 'given-name', 'email', 'postal-code').
  5. Repeat for every personal-data input in the form, then Publish the site and verify with a browser autofill test.
How to fix autocomplete valid on Adobe Commerce (Magento)
  1. Autocomplete attributes live in the PHTML template files for each form (checkout, customer registration, address book).
  2. To customise safely, create a theme override: copy the relevant template from vendor/magento/module-checkout/view/frontend/templates/ (e.g., shipping-address/form.phtml) or module-customer into app/design/frontend/Vendor/Theme/ preserving the module path.
  3. Open the copied PHTML file, locate each <input> element, and add or correct the autocomplete attribute using the correct HTML token.
  4. For the Checkout page, the shipping and billing address forms are rendered via Knockout JS UI components; edit the corresponding .html template in Magento_Checkout/web/template/shipping-address/ or billing-address/ within your theme.
  5. Run bin/magento cache:flush and bin/magento setup:static-content:deploy, then verify the rendered HTML contains the correct autocomplete values.

Does your site have this issue?

Run a free SEOLZ audit to find autocomplete valid — and every other issue — across your whole site in minutes.

Scan my site free

Frequently asked questions

What is Autocomplete valid?

The HTML `autocomplete` attribute tells browsers (and password managers, screen readers, and autofill tools) exactly what kind of information a form field expects — for example, a shipping first name, a credit card number, or an email address. WCAG 2.1 Success Criterion 1.3.5 ("Identify Input Purpose") requires that any field collecting personal information uses one of the officially recognised `autocomplete` token values, and that the token actually matches what the field is for. If the attribute is missing, misspelled, or set to the wrong value (e.g., `autocomplete="firstname"` instead of `autocomplete="given-name"`), browsers cannot reliably autofill the field and assistive technologies cannot identify its purpose.

Why does autocomplete valid matter?

Failing WCAG 1.3.5 creates real legal and commercial risk: accessibility laws in the US (ADA), UK (Equality Act), EU (European Accessibility Act), and elsewhere increasingly require WCAG 2.1 AA compliance, and incorrect `autocomplete` is a straightforward, auditable violation. Beyond compliance, customers — especially those with motor disabilities, cognitive impairments, or anyone on a mobile device — rely on browser autofill to complete checkout quickly. Broken autofill adds friction that directly increases cart abandonment and reduces conversion rates. Fixing it is one of the fastest wins you can get on a checkout or registration form.

How do I fix autocomplete valid?

Add a valid, correctly matched `autocomplete` attribute to every personal-data form field so browsers and assistive technologies can autofill them reliably.

Authoritative references

Related Accessibility (WCAG) issues