checks data in the form

boolean validate( [object mode] );
modeobjectvalidation mode for hidden and disabled fields
booleanresult of validation (success or failure)


        { view:"text", label:'Login', name:"login" },
        { view:"text", label:'Email', name:"email" },

Related samples


Note that the name property is required for controls, as it allows accessing the field through the form for validation.

Form is validated according to the rules you ought to define for the necessary form fields. See the corresponding chapter of the API reference.

Customizing validation logic

By default values of the hidden and disabled fields are not checked. If you want to include them into validation process, you need to provide a validation mode:

//hidden fileds will be validated
//both hidden and disabled fields will be validated
$$("$form1").validate({hidden:true, disabled:true});

Note that if the form is hidden itself, hidden and visible fields are not separated.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix ui library and page of form widget product.