I am using DataForm for my project and in the process of implementing validation. For validation, I use DataAnnotation-NonEmptyValdator for the required fields.
Is there a way to change it dynamically in runtime?.
For example, I have 2 fields, the first field is always required. However, the second field is not always required, it depends on the selected item of the first field.