Forums

Make submission fail

ccamp 11 Dec, 2012
Hi!

I'm doing custom js validation on "checkboxes" and "drop downs" and I was wondering how to make submission fail. I'm still using ChronoForms validation on textareas and text. When those pass validation, the form is submitted even if checkboxes and drop downs are empty (which is normal since nothing is stopping the form from beeing submitted).

I tried to use the "Form tag attachment" pointing to a js function that returns false (something like common html forms) but the form is still submitted.

ChronoForm version is 3.2

Thanks,
ccamp
GreyHead 12 Dec, 2012
Hi ccamp,

The built-in validate one required should validate check-boxes and radio button groups??

I'm not sure that adding the validation in the form tag will run soon enough (or at all). You'd be better using the MooTools events and calling it when the input changes.

Bob
This topic is locked and no more replies can be posted.