Jan 21, 2010, 1:54 PM
[CLOSED] Form reset not working
Hi
I am trying to do a client-side Form Panel reset on button click with no success.
Some of my forms works, some not.
Sorry, for not posting a code. it's been days I am struggling to reproduce this error and now debugging I have at least some clue.
My scenario is similar to https://examples1.ext.net/#/GridPane.../Form_Details/
When the page first loads I am manually set all my form fields (!IsPostBack && !Coolite.Ext.Web.Ext.IsAjaxRequest).
I have no idea where these original Values came from?!
That said, would you be able to help me?
Thanks
Leo.
PS: I am using Form Validation.
I am trying to do a client-side Form Panel reset on button click with no success.
Some of my forms works, some not.
Sorry, for not posting a code. it's been days I am struggling to reproduce this error and now debugging I have at least some clue.
My scenario is similar to https://examples1.ext.net/#/GridPane.../Form_Details/
When the page first loads I am manually set all my form fields (!IsPostBack && !Coolite.Ext.Web.Ext.IsAjaxRequest).
reset : function(){
this.setValue(this.originalValue);
this.clearInvalid();
}
I now debugging noticed that when the reset is performed on the form, it is actually not been cleared because it restores the fields originalValues.I have no idea where these original Values came from?!
That said, would you be able to help me?
Thanks
Leo.
PS: I am using Form Validation.