How it's possible to make validation in a dynamic way?
Example of validation:
I have three form fields, filterType, low, high.
low must be between 0 and 128
high must be between 0 and 128
filterType can be LOW, HIGH or BOTH
if filterType is equal to "BOTH" low and high fields need to be validate
if filterType is equal to "LOW" low field need be validate
if filterType is equal to "HIGH" high field need be validate
I need an approach to do it because i try everything I can imagine. Another detail, the fields low and high will be enable or disable in relation to filterType.
Thanks in advance.


Reply With Quote
