PDA

View Full Version : How do you use a browsers built-in auto complete on a textfield?



zakabog
15 Jan 2012, 10:54 PM
I couldn't find an answer on the subject, how do you get a browser to use it's built-in auto complete on a textfield inside of a form? They look like normal text input boxes and the one on this forum's search seems to work fine with my browsers auto complete, what's keeping it from working on other forms input boxes?

skirtle
15 Jan 2012, 11:17 PM
ExtJS fields all have the HTML attribute autocomplete="off", which disables the browser's built-in auto-complete. I don't believe this is configurable, you'd either have to override the template or do some post-rendering attribute manipulation. I'd probably go with the latter.

zakabog
16 Jan 2012, 8:57 PM
Ah, okay yeah I'll just disable it after render, cause I only want it on some fields. Thank you.