The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validating a field or check box, not both.
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?

Forum Jump:

Users browsing this thread: 1 Guest(s)