Answer the question
In order to leave comments, you need to log in
One field should be if there is no other in the form?
If there is one field, then there should not be another, and vice versa.
I do not see the validation rule among the standard ones for such functionality.
Answer the question
In order to leave comments, you need to log in
You can write the necessary validator for the model/entity.
But it will be more correct to change the form (add or remove fields) on form events, before validation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question