Performs form validation.
validate([showErrors])

showErrors | boolean, if true then it will display error bubbles on the screen (optional)

Returns array.

#### Description

The method will perform validation of the data, making sure all required fields are not blank and values are according to their field types. It will return an array of error objects. If this array is empty, then there are no errors. You can optionally supply showErrors argument that will make the method to display error bubbles next to the fields.
If you have form defined in the following way: $('#form').w2form({ name : 'form', recid : 10, url : '/server/form/path', formURL : '/server/path', fields: [ { name: 'first_name', type: 'text', required: true }, { name: 'last_name', type: 'text', required: true }, { name: 'email', type: 'email' } ], actions: { "save" : function (target, data) { this.save(); }, "reset" : function (target, data) { this.clear(); } } }); You can do: console.log( w2ui['form'].validate() );