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?