hey there
I’m stuck with a common problem, I guess…
I have a form, where a user needs to select from certain drop-downs. Nothing fancy so far, simple form-validation.
Additionally, I have a checkbox, from which further form-validation would depend. E.g. “alternative delivery address” - if checked, the following fields are mandatory, if not, then not.
I couldn’t come up with a smart solution so far. The only thing I can think of is for each address-field (name, street, city…) to define a callback. In each callback, I would check if the checkbox is marked, and then do the rest of the check.
This would result in many small callbacks, not so nice I’d say… could somebody think of a smarter solution?
Thx for any tipps!
Oliver
