By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,679 Members | 2,036 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,679 IT Pros & Developers. It's quick & easy.

Google autofill fields

P: n/a
I'm having a lot of difficulty trying to persuade the Google toolbar
autofill to act consistently, for example
=======================
<html><head>
<title>autofill test</title>
</head><body>
<form method="POST" action="">

1 email <input type="text" name="email"><br>
2 name <input type="text" name="name"> <br>
3 email <input type="text" name="name"> <br>
4 name <input type="text" name="email"><br>
5 name <input type="text" name="name"> <br>

</form></body></html>
=====================
Note the deliberate inconsistencies in lines 3/4 - in the interest of
attempting to understand what's happening.

The autofill results are :

Email
Full name
Email
Email
Full name

If line 3 was picking up the value from looking not at the field name
but the preceding text, then surely line 4 should do the same?

Still more odd, take away the text to just leave the input fields and
the results are

Email
Forename
[blank]
Surname
Full name

Next I tried 5 identical lines, including text description, all
email <input type="text" name="email"><br>
or all
name <input type="text" name="name"> <br>

all are filled correctly, now do the same but without the text:
<input type="text" name="email"><br>
Email
Forename
[blank]
Surname
Full name

and 5 identical lines of :
<input type="text" name="name"> <br>
Forename
[blank]
Surname
Forename
Surname

This all seems to suggest that the toolbar doesn't just look at the
field names but also the context - but I can't find any consistency.

The only resource I can find for assistance is

http://toolbar.google.com/autofill_help.html

That says:

"Note to web page authors: You can ensure that AutoFill will work on
your pages by using field names defined in the ECML (Electronic
Commerce Modeling Language) standard, found at
http://www.ietf.org/rfc/rfc3106.txt."

I set up a page with all the Ecom fields to see how Autofill responded
but the results were as confusing as before.

for example depending on context, fields named and described as:
Ecom_ShipTo_Postal_Street_Line1
Ecom_ShipTo_Postal_Street_Line2
Ecom_Postal_Street_Line1

MAY autofill as
[blank]
Shipto street line1
Shipto street line2

But in a different context
Ecom_ShipTo_Postal_Street_Line1
Ecom_ShipTo_Postal_Street_Line2
Ecom_ShipTo_Postal_Street_Line3
Autofilled to
Primary street line1
Primary street line2
[blank]

Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Sat, 05 Jun 2004 18:34:28 +0100,
sh******************@spam.hairdresser.net wrote:
I'm having a lot of difficulty trying to persuade the Google toolbar
autofill to act consistently... <snip>


Answered my own question?

Not entirely, but well enough for my immediate need.

Disregarding Google's advice about using the Ecom standard fields, the
example below seems to work reliably.

<html><head><title>autofill test</title>
</head><body><form method="POST" action=""><table>

<tr><td>Full Name </td>
<td><input type="text" name="Full_Name"></td></tr>

<tr><td>Email address </td>
<td><input type="text" name="Email_address"> </td></tr>

<tr><td>Phone number </td>
<td><input type="text" name="Phone_number"> </td></tr>

<tr><td>Address 1 </td>
<td><input type="text" name="Address_1"> </td></tr>

<tr><td>Address 2 </td>
<td><input type="text" name="Address_2"> </td></tr>

<tr><td>City </td>
<td><input type="text" name="City"> </td></tr>

<tr><td>Postcode/Zip </td>
<td><input type="text" name="Zip"> </td></tr>

<tr><td>County/State </td>
<td><input type="text" name="State"> </td></tr>

<tr><td>Country </td>
<td><input type="text" name="Country"> </td></tr>

</table></form></body></html>
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.