Eg: having two fields 'age' a char field and 'enter_age' a check box.when ever i checked the check box then nly i can to enter the age.If entering the age then it will check for age>18 , otherwise it willnot check..Have written validation code for 'age'(age>18) and given the constraints too.
.Now my problem is whenever i chekked 'enter_age' then it will check for the constarints and gives a positive result...But whenever i didnt check the 'enter_age' then also they are checking for the constraints.....But i dont want to happen this..
how to disable the contraints for the second condition only???
plz give some answers..