EasyUI Forum
May 05, 2024, 03:19:06 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to use form disablevalidation?  (Read 2072 times)
roberto
Jr. Member
**
Posts: 88


View Profile Email
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: February 06, 2022, 03:12:07 AM »

Call the 'disableValidation' method to disable the form validation.
Code:
$('#ff').form('disableValidation');
Logged
roberto
Jr. Member
**
Posts: 88


View Profile Email
« Reply #2 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #3 on: February 07, 2022, 01:37:49 AM »

The code below works fine.
Code:
$('#ff').form('disableValidation');
$('#ff').form('load',{
//...
});
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!