Feb 21, 2015, 12:53 AM
Form Validation with Checkboxes
I see that there is some probem with validation form with checkboxes... in my case I am trying to reset Dirty status after save and it works for all controls except checkboxes. I have one Save button for 4 forms arranged in tabs, so my code for reset is:
There is workaround in this thread but I dont know to adapt it for my case: http://forums.ext.net/showthread.php...-Checkboxgroup
Just to mention: when I check checkbox, function above reset dirty status, but when unchek it does't.
var dirtyreset = function () {
App.Form1.getForm().setValues(App.Form1.getForm().getValues());
App.Form2.getForm().setValues(App.Form2.getForm().getValues());
App.Form3.getForm().setValues(App.Form3.getForm().getValues());
App.Form4.getForm().setValues(App.Form4.getForm().getValues());
}
So what I must add to this code to reset dirty status when uncheck checkbox? I dont have groups, just single checkboxes.There is workaround in this thread but I dont know to adapt it for my case: http://forums.ext.net/showthread.php...-Checkboxgroup
Just to mention: when I check checkbox, function above reset dirty status, but when unchek it does't.