Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 770
Kornel Avatar asked Jun 22 '09 14:06

Kornel


People also ask

What is auto fill form data?

Autofill is a function on a browser or program that can automatically fill in fields with saved data. Online forms that allow autofill are especially useful to save users' time for common fields like Name, Email, and Address, but they can also be used to autofill information like passwords and credit card numbers.


3 Answers

According to http://www.macosxhints.com/article.php?story=20070527063904285 the file Contents/Resources/English.lproj/ABAutoCompleteMappings.plist within the Safari.app package leads this list:

first
first name
fname
firstname
given name

middle initial
middleinitial
middle name
middlename
middle

last
last name
lname
lastname
surname

name

birthday
date of birth
born

job title
jobtitle

email
e-mail

street
street address
streetaddress
address1
address 1

address

city

state

zip
zipcode
zip code
postalcode
postal code

country

homephone
home phone
eveningphone
evening phone
home area code
home areacode
homeareacode
evening area code
evening areacode
eveningareacode

workphone
work phone
dayphone
day phone
daytime phone
companyphone
company phone
businessphone
business phone
work area code
work areacode
workareacode
day area code
day areacode
dayareacode
company area code
company areacode
companyareacode
business area code
business areacode
businessareacode

mobilephone
mobile phone
cellphone
cell phone
mobile area code
mobile areacode
mobileareacode
cell area code
cell areacode
cellareacode

pagerphone
pager phone
pager area code
pager areacode
pagerareacode

area code
areacode

phone

fax

organization
company
like image 176
François Avatar answered Oct 13 '22 02:10

François


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.

like image 23
max Avatar answered Oct 13 '22 00:10

max


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

like image 2
Colin Pickard Avatar answered Oct 13 '22 00:10

Colin Pickard