PDA

View Full Version : Disable reset of certain form fields



reda.bouaichi
1 Dec 2011, 1:07 PM
Hi All !
I just had an issue, is that I populate a form when I create it (programmatically I mean, not setting the 'value' config ;)). But I would like to keep certain fields when I hit reset.. Is there any way to do that ? ( BTW I saw that in previous version of extjs there was a config called disableReset, but I didnt find it in this version )

Thanks

mitchellsimoens
2 Dec 2011, 7:57 AM
You can iterate through an array of the fields and reset the field based on your criteria.

reda.bouaichi
2 Dec 2011, 9:27 AM
Thanks ..