View Full Version : Browser form history for Ext.form.Fields?

3 Dec 2009, 1:06 PM
Is there any way to have browser form history for Ext.form.Field instances, the same as plain old HTML input elements? I'm referring to the history of previous field values that the browser retains, typically offered as suggestions when filling the field a second time.

3 Dec 2009, 2:16 PM
ExtJS removes that behavior by adding the 'autocomplete="off"' attribute to the input tag. To get that behavior back you would need to override the autoCreate template, removing that attribute.


Ext.override(Ext.form.Field, {
defaultAutoCreate : {tag: 'input', type: 'text', size: '20'}

Some fields have their own templates that overwrite this default, so other templates might need to be changed as well.