Anish Karunakaran
Anish Karunakaran

Reputation: 987

Extjs Set dirty false for form after saving

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

Answers (1)

Dinkheller
Dinkheller

Reputation: 5054

formpanel.setValues(formpanel.getValues());

Aafter you call this, the form has not longer the dirty status

Upvotes: 2

Related Questions