onValidationError of ValidateData, Events Webix Docs
fires when a form input fails to pass validation
void onValidationError(string key,object obj);
Example
webix.ui({
view:"form",
on:{
onValidationError:function(key, obj){
var text;
if (key == "login")
text = "Login can't be empty";
if (key == "email")
text = "Invalid Email";
webix.message({ type:"error", text:text });
}
});
Related samples
See also