Forums

Required fields left empty do not prevent form submission

flodariege 15 Sep, 2015
Hello,

My forms were working fine... until I realized, since the last Joomla update that some checkbox had disapeared (simple checkbox with label on the left) I simply put the label on the secondary label and it displays properly now.
BUT.... I realized when I tested my form that the required fields can be left empty, it doesn't prevent the form submission.
I double checked : my fields are marked as required and the validation is on yes. But the field validation do not work.

Am I the only one with this trouble?

My form is here : http://www.rouchenergies.fr/devis-gratuit.html

Any help would be very welcome, since I receive a lot of blank emails (people forget to chose...)

Florence
flodariege 15 Sep, 2015
Oh sorry ! i forgot to give an important precision:
The field validation is working fine on dropdown.
It is NOT working on checkbox groups.

Florence
GreyHead 16 Sep, 2015
Hi Florence,

The only difference I can see is that the CheckBox groups are hidden - which blocks the validation. I wonder if that isn't being unblocked when they are un-hidden again.

Bob
flodariege 19 Sep, 2015
Hi Bob,

Too bad... It was working fine, it's really a pity I can't get it working anymore.
I guess I will have to find a good idea for displaying directly the long list of solutions of the checkbox_group in order to avoid to hide them.
Something with several columns would be fine I guess.
I'm gonna try to find how to perform this ...
Thank you anyway.

Florence
GreyHead 20 Sep, 2015
Hi Florence,

I dug into the debugger bit more and the validation code for the 'hidden' checkboxes is being run but - for some reason I couldn't work out - isn't flagging the error correctly :-(

I suggest that you ask Max to take a look using the Contact Us menu above and linking to this thread.

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