May 28th, 2010, 1:10 PM
I have a simple form (using process.php) with a date field (including the calendar button) and a check box.
The set up is this: the submitter can either choose a date or check a box for "Any dates".
My issue is validating one or the other but not both.
So, one of the 2 has to be filled, either they enter a date, or they check the box.
I have not been able to get it to work corretly using the standard:
rules.push("required,,"); rules.
It works (it validated the field) but not the way I need it to.
I have not tried using the API for this form, and I would prefer not to, if possible.
Any ideas?
Thanks
AL
The set up is this: the submitter can either choose a date or check a box for "Any dates".
My issue is validating one or the other but not both.
So, one of the 2 has to be filled, either they enter a date, or they check the box.
I have not been able to get it to work corretly using the standard:
rules.push("required,,"); rules.
It works (it validated the field) but not the way I need it to.
I have not tried using the API for this form, and I would prefer not to, if possible.
Any ideas?
Thanks
AL