Config request: maxTrue Constraint for Boolean Fields in Arrays/Collections #11165
jmcapra
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
Related: passing the current object to
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
e.g. A common use case for this feature would be managing a collection or array of contacts with an
isPrimary
checkbox field, ensuring that only one contact can be marked as primary per organisation.While I'm sure it's possible to do with hooks/validation and custom components (for front end), it would be great to see this as a config option.
Proposed configuration
This would allow defining a groupBy key to enforce the constraint within subsets of the collection.
Thoughts?
Looking forward to your insights!
Beta Was this translation helpful? Give feedback.
All reactions