Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Autofill filling wrong form fields: fix autocomplete attributes

CNV-018Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Autofill lets a browser fill a form from details the visitor saved earlier: name, email, phone, address. To know which saved value goes in which box, the browser reads each field's autocomplete attribute. If it is missing, the browser guesses from the name, id or label text.

Guesses go wrong. A field named name in a company-only form may get the person's full name. A field called phone2 may get nothing. A bad value such as autocomplete="nope" or a typo like autocomplete="e-mail" is ignored or misread.

Common autocomplete problems and what they cause
ProblemExampleResult
Attribute missing<input name="field_7">Browser guesses from label or name, often wrongly
Misspelled tokenautocomplete="e-mail"Ignored, no autofill
Wrong tokenautocomplete="name" on a company fieldPerson's name lands in Company
Blanket offautocomplete="off" on every fieldNo help for visitors, and browsers may ignore it anyway
Duplicate tokensTwo fields both set to emailSame value in both boxes

Why it costs you leads or sales

Most visitors never notice an autofill mistake until after they submit, if at all. The cost is mostly quiet: wrong data in your CRM, a phone number in the email box that fails validation, or a visitor who gives up after correcting three boxes on a phone. The business impact is usually low, but it hits mobile visitors hardest because typing is slow.

How a bad autocomplete attribute leaks leads
  1. Visitor opens formTaps first field, browser offers saved profile
  2. Autofill runsWrong or missing autocomplete tokens
  3. Wrong data in boxesName in Company, phone in email
  4. Visitor abandons or submits bad dataValidation errors or junk lead

The break happens when the browser maps saved data to the wrong field.

Time to complete a form on mobileExample numbers
Time to complete a form on mobile (example)Correct autofill: 12 seconds; No autofill: 45 seconds; Wrong autofill: 60 seconds02346124560Correct autofillNo autofillWrong autofillseconds

Example: illustrative numbers only. Correct autofill saves typing; wrong autofill adds correction time.

How to check if your site has it

Inspect and test your form
  1. Inspect each input

    Right-click a field, choose Inspect, and look for the autocomplete attribute on every <input>, <select> and <textarea>.

  2. Compare to the standard tokens

    Check each value against the list in the fix section. Look for typos, made-up values and duplicates.

  3. Test with a saved profileChrome

    In Chrome, add a test address and phone under Settings > Autofill and passwords > Addresses and more. Open the form in a clean window and use the autofill suggestion.

  4. Repeat in other browsers

    Try Safari (iPhone and Mac) and Firefox. Each reads attributes slightly differently, so one pass is not enough.

  5. Note every mismatch

    Write down which field received the wrong value and what its name, id and label are.

How to fix it

Set one correct token per field. These are the ones lead forms use most.

Standard autocomplete tokens for lead forms
FieldToken
Full namename
First namegiven-name
Last namefamily-name
Emailemail
Phonetel
Companyorganization
Job titleorganization-title
Street addressstreet-address
Postcode / ZIPpostal-code
Cityaddress-level2
Countrycountry-name
Correct autocomplete attributeshtml
<form>
  <label for="fn">First name</label>
  <input id="fn" name="first_name" type="text" autocomplete="given-name">

  <label for="ln">Last name</label>
  <input id="ln" name="last_name" type="text" autocomplete="family-name">

  <label for="em">Email</label>
  <input id="em" name="email" type="email" autocomplete="email">

  <label for="ph">Phone</label>
  <input id="ph" name="phone" type="tel" autocomplete="tel">

  <label for="co">Company</label>
  <input id="co" name="company" type="text" autocomplete="organization">
</form>
Where to set autocomplete by platform
  1. Use field settings if offered

    Gravity Forms has an Autocomplete option under a field's Appearance or Advanced settings. Other form plugins vary, so check each field's settings first.

  2. Add the attribute if there is no setting

    Some plugins let you add custom attributes to a field. If yours does not, add them with a small script (see the Custom code tab) or edit the theme template for hand-built forms.

Patch autocomplete by field name (fallback)javascript
document.addEventListener('DOMContentLoaded', function () {
  var map = {
    first_name: 'given-name',
    last_name: 'family-name',
    email: 'email',
    phone: 'tel',
    company: 'organization'
  };
  Object.keys(map).forEach(function (name) {
    document.querySelectorAll('[name="' + name + '"]').forEach(function (el) {
      el.setAttribute('autocomplete', map[name]);
    });
  });
});
Form markup before and after

Before

  • No autocomplete attributes
  • Field names like field_7 and input_3
  • Browser guesses and mixes up fields

After

  • One standard token per field
  • Names, email, phone and company map correctly
  • Visitor fills the form in a couple of taps

How to confirm it's fixed

Confirmation checklist
  • Every personal-data field has a valid, standard autocomplete token
  • No two fields share the same token by mistake
  • Chrome autofill puts each saved value in the right box
  • Safari on iPhone fills name, email and phone correctly
  • Firefox fills the same fields correctly
  • A test submission arrives in your inbox or CRM with data in the right fields

How to prevent it happening again

Prevention habits
  • Add autocomplete tokens to your form template or component so every new form inherits them
  • Re-test autofill after changing a form plugin, theme or page builder
  • Keep field names meaningful (email, phone) rather than generic numbers
  • Include autofill in your pre-launch form checklist
  • Re-inspect the live markup after plugin updates, since they can rewrite attributes

How FunnelGuard handles this

FunnelGuard does not check autocomplete attributes yet. It is a possible future check, so today you need to inspect and test autofill yourself.

What FunnelGuard does cover nearby: a robot visitor runs your real lead form journey on a schedule, checks each step, and confirms that a test lead reaches your inbox and CRM. If a form change breaks the journey or loses data, that is what it is built to catch. It will not tell you that a browser autofills the wrong box.

To watch for this manually, re-run the autofill test above after any form or theme change. You can also run a browser audit tool such as Lighthouse in Chrome DevTools or an HTML validator, and review CRM records for odd patterns like names in company fields. You can start with the free plan (1 site, 2 journeys, daily checks, no card) to cover the wider form journey.

Questions people ask

Why is my form autofill putting the wrong data in the wrong fields?

The browser reads each field's autocomplete attribute, and if it is missing or wrong, it guesses from the name, id or label. Add the correct standard token, such as given-name, email or organization, to each input and retest.

What autocomplete values should I use on a contact form?

Use name or given-name and family-name for people, email for email, tel for phone, organization for company and organization-title for job title. Address fields use street-address, address-level2 for city, postal-code and country-name.

Why does Chrome ignore autocomplete="off"?

Chrome and other browsers often ignore off on fields holding personal data because it hurts usability. Use correct tokens instead, and keep off for fields that truly should not be saved.

How do I test autofill on my form?

Save a test profile in your browser's autofill settings, open your form in a clean window and choose the suggestion. Check that each value lands in the right field, then repeat in Safari and Firefox.

Does wrong autofill affect conversion rates?

It can, mostly on mobile, where correcting boxes is slow and visitors may abandon the form. The impact is usually low, but wrong data also pollutes your CRM.

Can I add autocomplete attributes in Webflow or WordPress?

Yes. In Webflow use Custom attributes in Element Settings. In WordPress, use your form plugin's autocomplete or custom attribute option, or add attributes with a small script.

Does FunnelGuard check autocomplete attributes?

No. It is a possible future check. FunnelGuard does run your real form journey and checks that a test lead reaches your inbox and CRM, but you need to test autofill manually.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.