EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: roberto on February 04, 2022, 09:28:24 AM



Title: how to use form disablevalidation?
Post by: roberto on February 04, 2022, 09:28:24 AM
after saving the form values ​​I need to move to another record and load the new data, but the fields are validated as if they had been changed from the previous record. I tried disabling validation but it keeps validating anyway


Title: Re: how to use form disablevalidation?
Post by: jarry on February 06, 2022, 03:12:07 AM
Call the 'disableValidation' method to disable the form validation.
Code:
$('#ff').form('disableValidation');


Title: Re: how to use form disablevalidation?
Post by: roberto on February 06, 2022, 05:12:52 AM
tks for your answer
I did but did not work. Always the fields are validated when I load new data


Title: Re: how to use form disablevalidation?
Post by: jarry on February 07, 2022, 01:37:49 AM
The code below works fine.
Code:
$('#ff').form('disableValidation');
$('#ff').form('load',{
//...
});