How to "setInvalid"

I am using $obj to create a custom rule to validate whether an event has a conflicting entry. This checks “Location”, “StartDate” and “EndDate”.

If my custom rule finds a conflict, I would like to mark the fields “invalid”, just like required fields appear when they’re empty and .validate() runs.

Is there a simple way to mark these fields invalid?

Hi,

Yes, there’s a markInvalid method which can be applied to a particular field: http://webix.com/snippet/cb87ea90

Thank you very much! That is exactly what I was searching for.