Issue with validation events

I get 4 messages with this code: http://webix.com/snippet/9480abfa.

But works “as expected” this way: http://webix.com/snippet/83eb0c3f.

What could I be missing?

thx.

Ok… validate() returns the “global” validation result, onValidation events apply to each form rule (required included). Right?

Events will fire for each case of validation, if you have multiple rules - there will be multiple calls. If you need a single point - use onAfterValidation event

http://webix.com/snippet/c8456e0b
http://docs.webix.com/api__link__ui.form_onaftervalidation_event.html