Link to home
Start Free TrialLog in
Avatar of nzinsli
nzinsliFlag for United States of America

asked on

Google toolbar autofill issue

I've been made aware of an issue with our site that I'm a bit perplexed by. I've searched Google's docs and such with no luck.

Our checkout form has the basic fields, name/addr/city/etc. We found that if you have Google toolbar installed and setup with one or more autofill profiles, it creates a validation issue on the form. When you start typing the email address, googles autofill puts the available text options below the field. If you select one and submit the form, the JS validation is only seeing the portion that you actually typed in, not the value that the Google toolbar filled in.

ie: You type "jsm" and click the toolbar autofill option of "jsmith@email.com", my JS validation is only getting "jsm" as the value for that textbox.

Has anyone else come across this before?
Avatar of hankknight
hankknight
Flag of Canada image

Try adding this to your input tags:
     value="" autocomplete="off"

If that doesn't work, a more complicated solution will be required, but try this first.
<input type="text" name="Phone" value="" autocomplete="off" />

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of nzinsli
nzinsli
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nzinsli

ASKER

Found my own error.