Reputation: 987
I need to reset the form's dirty status to false after saving the form.
Form is configured for trackresetonload so that not set dirty for setvalue function.
I tried calling reset() but it resets the data in the form fields to its previous state(ie initial value).
Is there a way to do this,
Thanks.
Upvotes: 1
Views: 3342
Reputation: 5054
formpanel.setValues(formpanel.getValues());
Aafter you call this, the form has not longer the dirty status
Upvotes: 2