DoesNotExist validation rule #39036
Unanswered
alberto-bottarini
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My scenario:
Users can create custom events setting start_date, end_date and topic.
Events cannot overlap themself.
For example I created an "holiday" event from 2022/08/01 to 2020/08/20. I cannot create another event that starts, for example, on 2022/08/15 because this new one will overlap with "holiday" event.
I cannot validate this situation using custom validator becase:
$field <> $value
that in my case is not right.I would like to have something like this:
This new rule should pass if a particular query returns no records, without setting an automatic where condition as Unique rule does.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions