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.
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
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
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 :-)
发布评论
评论(4)
根据 http://www.macosxhints.com/article.php?story=20070527063904285 Safari.app 包中的文件 Contents/Resources/English.lproj/ABAutoCompleteMappings.plist 引导此列表:
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:
为此有一个 RFC。 但显然一些实现搜索标签而不是使用字段名称。
您是否尝试过
Ecom_ShipTo_Postal_Name_Prefix
、Ecom_BillTo_Postal_Name_Prefix
或Ecom_ReceiptTo_Postal_Name_Prefix
作为标题?RFC 中描述的多个电话号码似乎没有任何选项。 只需
Ecom_ReceiptTo_Telecom_Phone_Number
等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
orEcom_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这可能是一个愚蠢的建议*,但是您是否考虑过获取源代码并四处探索? Webkit 在这里,Firefox 就在这里(有点)。 但它对 Opera 或 IE 没有帮助。
*
这对我来说很愚蠢,c/c++ 对我来说都是双重的:-)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 :-)以下是完整的属性列表,其中包含更详细的说明
https: //html.spec.whatwg.org/multipage/form-control-infrastruct.html#autofill
有效属性为:
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: