iPhone UIWebView - Can auto complete be turned off on a input text field?

gef picture gef · Oct 22, 2010 · Viewed 7.9k times · Source

I've searched high & low for an answer on this and I can't seem to find an answer or anybody else having the same issue. Hope some one can assist?

I have a web page for signup which I'm viewing in an iPhone UIWebView. A user is asking if we can stop capitalization on the first letter of the email address being entered. I thought this didn't matter, but apparently it can for the local-part on some email systems (apparently it's only the domain that is only case insensitive).

It seems autocomplete is the culprit. I've tried adding autocomplete="off" to the input element in the html, but iOS is obviously ignoring it:

alt text

Can auto-complete be turned off on a html input text field within a UIWebView?

Thanks

Answer

Michal picture Michal · Oct 22, 2010

Add autocorrect="off" attribute to your input text field.