Form field names used by personal data auto-fill in browsers (Safari, Opera)

Viewed 22603

I'm looking for complete list of form field names (<input name="…">) that are recognized by auto-fill functions in major browsers.

Here are some I've found to work in Safari using trial-and-error:

  • email
  • Ecom_ReceiptTo_Postal_Name_First
  • Ecom_ReceiptTo_Postal_Name_Last
  • first-name
  • firstname
  • last-name
  • lastname
  • full-name
  • birthday
  • company
  • jobtitle
  • phone
  • street
  • city
  • country
  • state (used for county outside US)
  • postalcode
  • zip

However I couldn't find separate field for title/honorific prefix (it's included in full name only).

Opera's Wand recognizes more or less the same names with exception of name, which requires Ecom_ReceiptTo_Postal_Name_First and Ecom_ReceiptTo_Postal_Name_Last.

I couldn't find field for mobile phone number. Haven't found way to get separate home/work fields.


There's proposal to extend autocomplete attribute to allow developers specify these explicitly.

5 Answers

I wasn't aware of the names you used. But I knew Mozilla/Netscape and IE use vcard_name attributes to guide autofill as described here.

There is a RFC for this. But apparently some implementations search for labels rather than using field names.

Did you try Ecom_ShipTo_Postal_Name_Prefix, Ecom_BillTo_Postal_Name_Prefix or Ecom_ReceiptTo_Postal_Name_Prefix for the title?

There doesn't seem to be any option for multiple phone numbers described in the RFC. Just Ecom_ReceiptTo_Telecom_Phone_Number etc

This might be a silly suggestion*, but have you considered getting the source and poking around? Webkit is here, Firefox is here (kinda). It won't help with Opera or IE though.

* It'd be silly for me, c/c++ is all double duch to me :-)

Here is the full list of attributes with a more detailed explanation

https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

Valid attributes are:

  • name
  • honorific-prefix
  • given-name
  • additional-name
  • family-name
  • honorific-suffix
  • nickname
  • username
  • new-password
  • current-password
  • one-time-code
  • organization-title
  • organization
  • street-address
  • address-line1
  • address-line2
  • address-line3
  • address-level4
  • address-level3
  • address-level2
  • address-level1
  • country
  • country-name
  • postal-code
  • cc-name
  • cc-given-name
  • cc-additional-name
  • cc-family-name
  • cc-number
  • cc-exp
  • cc-exp-month
  • cc-exp-year
  • cc-csc
  • cc-type
  • transaction-currency
  • transaction-amount
  • language
  • bday
  • bday-day
  • bday-month
  • bday-year
  • sex
  • url
  • photo
  • tel
  • tel-country-code
  • tel-national
  • tel-area-code
  • tel-local
  • tel-local-prefix
  • tel-local-suffix
  • tel-extension
  • email
  • impp
Related