I have an input element and I setted two validation rules for it.
validate="NotEmpty ValidEmail"
Even though I entered correct email the validation would not pass.
I tried: xxxxxxx@xxx.com
I have an input element and I setted two validation rules for it.
validate="NotEmpty ValidEmail"
Even though I entered correct email the validation would not pass.
I tried: xxxxxxx@xxx.com
Hmm,
probably this will help?
docs.dhtmlx.com/doku.php?id=dhtm … revalidate
you may use native code that form used:
myForm.attachEvent("onBeforeValidate",function(){
var v = myForm.getItemValue("email"); // this will return input's value
var isCorrect = (dhtmlxValidation.isNotEmpty(v)&&dhtmlxValidation.isValidEmail(v)); // this will return true if no empty and valid email
return true; //false
});
current version doesn’t allow to combine validate rules, but you can create a custom ones, if necessary
In your case, using ValidEmail is enough, because valid email already assumes that value is not empty.