Validation from relation managers

Are there any methods or techniques to allow for grouping validation behaviour between a resource's form and relation managers? Example: when trying to submit a resource with of a form and, say, a 'related worker' relation manager, would like to be able to have a validation rule that requires a minimum of 2 related workers, or... 1 worker of a specific type. The resource's validation process would fail if one of the relation manager conditions fails. Unsure how best to address this. TIA.
1 Reply
Dennis Koch
Dennis Koch3mo ago
The resource's validation process would fail if one of the relation manager conditions fails.
Relation managers and the Edit/CreatePage are two separate things. Not sure where you'd want to put that validation logic, because the records are already saved through the RelationManager. You could add a warning block on your form through a ViewField or Placeholder. But that would require refreshing the form after every change through the RM.