Documentation

onValidationError

fires when the form fails to pass validation

void onValidationError(string key,object obj){ ... };

Parameters

keystringdata key that is being validated
objobjectdata object

Example

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 });
    }
}

See also

Back to top