Hello,
I'd like to validate input values in a different way depending on the context.
For example, a check button is checked, then a text field's value comes to be required.
Meanwhile, it isn't required when the check button is unchecked.
To realize this type of validation, I have made custom validators or validate event handlers so far.
But if it is possible to change validation rule in a similar way to change properties, it is very easy and intuitive for me.
I wonder if I can take such a way or there are any other reasonable way.
I'd like to validate input values in a different way depending on the context.
For example, a check button is checked, then a text field's value comes to be required.
Meanwhile, it isn't required when the check button is unchecked.
To realize this type of validation, I have made custom validators or validate event handlers so far.
But if it is possible to change validation rule in a similar way to change properties, it is very easy and intuitive for me.
I wonder if I can take such a way or there are any other reasonable way.
Tags:
validation