onValidationError

fires when a form input fails to pass validation

void onValidationError(string key,object obj);
key
stringdata key that is being validated obj
objectdata 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
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.