EasyUI Forum
July 02, 2024, 11:12:00 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: validateon Create / Blur  (Read 3332 times)
roberto
Jr. Member
**
Posts: 88


View Profile Email
« on: June 20, 2019, 06:20:05 AM »

Hi,

How exactly does the validateonCreate / Blur property work?
No matter if I define it as true or false, validation is done when the form is shown
Logged
jarry
Administrator
Hero Member
*****
Posts: 2268


View Profile Email
« Reply #1 on: June 20, 2019, 06:43:44 PM »

If the 'validateOnCreate' is set to true, the validation action will be made immediately when the component is created. If the 'validateOnBlur' is set to true, the validation action won't be made until it lose focus.
Logged
roberto
Jr. Member
**
Posts: 88


View Profile Email
« Reply #2 on: June 21, 2019, 05:06:25 AM »

Sorry but I did a lot of testing and I could not do the behavior you said
Logged
jarry
Administrator
Hero Member
*****
Posts: 2268


View Profile Email
« Reply #3 on: June 22, 2019, 07:17:04 AM »

Please look at this code.
Code:
<input class="easyui-textbox" data-options="validateOnCreate:false,validateOnBlur:true,required:true">

The validation hasn't been done until it lose focus.
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!