Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
207 views
in Technique[技术] by (71.8m points)

html - 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.

question from:https://stackoverflow.com/questions/1027462/form-field-names-used-by-personal-data-auto-fill-in-browsers-safari-opera

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...