views:

140

answers:

3

Is there some way I can stop Chrome from auto populating input boxes? I have a page with a Sign Up form and a Log In form. In Chrome, if a user has already signed up and they've come to this page to log in, the password input box on the sign up form is populated with their password. I would really like to force the sign up fields to never auto complete.

I've tried setting autocomplete="false" but this makes no difference.

A: 

I think it's autocomplete="disabled" instead.

Broam
+5  A: 

autocomplete="off" worked on our site.

Jim B
For reference (HTML5 Draft Spec - autocomplete): http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#attr-form-autocomplete, and it looks to be (at least partially) supported in most modern browsers.
Rich Adams
That's in accordance with the documentation of this non-standard (until HTML5) attribute: "Any string other than off enables AutoComplete" according to MSDN http://msdn.microsoft.com/en-gb/library/ms533486(VS.85).aspx , the WebKit docs https://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html#//apple_ref/doc/uid/TP40008058-autocomplete and the Mozilla docs https://developer.mozilla.org/en/HTML/Element/Input#Attributes
NickFitz
and autocomplete="off" works perfectly on ours now too! Thanks for that. I was sure I read that the attribute had true/false states.. Obviously I was wrong.
thor
+1  A: 

You could simply use different field names.

Tgr