: How does Safari Autofill match fields to data? I'm trying to find documentation on how Safari maps user AutoFill profile data to HTML form input fields. Clearly it's doing some sort of matching
I'm trying to find documentation on how Safari maps user AutoFill profile data to HTML form input fields. Clearly it's doing some sort of matching on the name attribute, but that's no longer working correctly on our forms. All I can find on Apple's site is end-user documentation. I'm hoping there's some magic Safari-only data attribute I could inject into the HTML to make it work correctly.
Background:
We recently (2Q-3Q 2014 or thereabouts) began getting an extra copy of the customer's ZIP code in the field we use for a name suffix, like "Jr," "Sr", "DVM" etc. Was able to associate this behavior with user-agent strings ending Safari/537.* Fairly confident it's Autofill because important form modifications trigger Ajax calls and the very first one had all the contact info. (Filled by hand usually results in multiple ajax calls.)
Not being able to find any better standard, I seelcted the ECML v2 (RFC 4112, tools.ietf.org/html/rfc4112) field names many years ago. It's the input name="Ecom_ShipTo_Postal_Name_Suffix" that's getting the extra copy of the ZIP code. Fortunately, we are also getting the ZIP code in Ecom_ShipTo_Postal_PostalCode where it should be.
Thanks for your help.
More posts by @Lengel546
1 Comments
Sorted by latest first Latest Oldest Best
It's very much an embarrassing oversight that HTML5 inputs using type= do not include fname, lname, address, city, state, zip, country. That being said, we usually just use simplistic name instead, such as name="postalcode" and set type="text" -- it seems to work out ok.
That ietf page you linked is still just proposed and a memo, its not standardized. Honestly I've never even seen that name="Ecom_Flag_Name" convention used on any platform, whereas name="postalcode" style is used in many places. See if simplifying those names has any effect.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.