Forums

Submit form without required fields.

Johang 10 Feb, 2011
I made a form with al lot of fields set to required. I checked it in de form code and it says input class="cf_inputbox required" for the fields I set on required.
When I open the site an press the submit button the form is send without filling in any data and I recieve in my mail a nice blank form.

Johan Gols
GreyHead 10 Feb, 2011
Hi Johan,

This usually means that there is a JavaScript conflict with something else on your site.

Please post a link to the form so we can take a quick look.

Bob
Johang 10 Feb, 2011
I changed the plugin Mootools upgrade for the site to 1.12 ( was 1.2) and the problem was solved. Can this also cause the disappearing of the link ?
GreyHead 10 Feb, 2011
Hi Johan,

FYI ChronoForms v3 requires MooTools 1.1; ChronoForms v4 requires MooTools v1.2

This shouldn't affect a link in the form code, and the link shouldn't disappear either. But if you used the rich editor to enter a link by typing the tags that may not work. Use the Link button, or edit the HTML directly.

Bob
Johang 10 Feb, 2011
I'm using v 3.2.0 now with Mootools 1.12 and the problem is solved. I will upgrade to V4.
I inserted the link in Form code > form HTML and it worked for a few days. I have reinserted the link in the same way and its working perfect.
Thanks for the quick answer.

Johan Gols
bepos 06 Sep, 2011
Hi,

i have the same problem. mostly all forms are send correctly, but sometimes all fields are empty

i'm using joomla 1.5.23 and CF 4.0 RC 1.9 The Mootools upgrade plugin is enabled.

the url : http://grijsengroots.nl/award/aanmelden

kind regard,
Mark
GreyHead 16 Sep, 2011
Hi Mark,

If JavaScript is disabled then your form submits with blank values - which is what you'd expect. You need to add some serverside validation to prevent that.

What is more worrying is that it submits when the ImageVerification is empty which suggests that you don't have a Check Captcha action set up with an Event Loop in the OnFail box.

Bob
bepos 16 Sep, 2011
Hi Bob,

hmmm. stupid me... forgot to enable the captcha check ;-// normally i allways do so.

javascript is enabled. and there are several fields who are required.

so is there any other way one can send an empty form?

kind regards,

Mark
GreyHead 16 Sep, 2011
Hi Mark,

The problem is if the user/bot's browser has JavaScript disabled. That just bypasses all the browser-side validation.

In general treat the browser-side validation is being there to help the genuine user complete the form correctly and use server-side validation to validate that you are only allowing valid results.

Bob
bepos 16 Sep, 2011
ok. thanks.

will check this and hopefully the empty form are history.

kind regards,
Mark
This topic is locked and no more replies can be posted.