onValidationError

fires when a form input fails to pass validation

void onValidationError(string key,object obj);
keystringdata key that is being validated
objobjectdata object

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
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web ui framework and page of toolbar js product.