Validating two fields, either with a value

Discussion created by dhaberm on Mar 4, 2014
Latest reply on Mar 5, 2014 by dhaberm

I am trying to do something that seemed so easy in other programming languages that I have used, but can seem to crack in here...


Here's what I am trying to do.


I have an age field that is required. If the age is unknown, rather than making a user type unknown (or something else and change the field to alphanumeric). I would a check box next to the age field. If age is unknow, then they can check the box and the age field would not be enterable. If they got an age, then the Check box would not be selectable...and validation for the form would make sure one or the other is selected. looks something like this...