Forums

Captcha & Validation

jmahun 12 Jun, 2014
I'm still new to Chronoforms so I'm following the basic contact form example in the ChronoForms V4 Basics 1 how-to doc. All fields are set to required input so the form won't submit if any of the fields are blank.

To test the form, I created a menu link to it on my site. The form responds correctly in both Test Form and from the menu on my site.

So far, so good.

I added Captcha to the form and now strange things are happening. In Test Form, the form is behaving as I expect it to: it won't submit if any of the fields are blank. But when I access the form from the menu on my site, I can submit it with empty fields. It's as if Captcha turned off the validation for each field.

In the form's On Load Event, Load Captcha is the first action; in On Submit, Check Captcha is first and includes OnFail in its Event Loop.

I tried changing the order of Load Captcha events, flushed Joomla's cache, but it doesn't help.

I'm running ChronoForms v4 on Joomla 3.2.
GreyHead 13 Jun, 2014
Hi jmahun,

It sounds as though the form may not be submitting at all from the Menu link? Do you get any output from it? If not please see the part about the Relative URL setting in this FAQ.

Bob
jmahun 13 Jun, 2014
The form submits correctly from the menu link.

I removed Captcha along with its events from the form. In Test Mode, the form wouldn't submit with a blank required field; the web link form did submit with a blank required field. Validation doesn't appear to be working for the web link form.

I create a new form with a single required text field. Test Mode: form wouldn't submit with a blank field. Web link: form submitted with a blank field.

Somewhere, somehow, validation got screwed up and I don't know how to resolve it.
GreyHead 13 Jun, 2014
Hi jmahun,

Maybe a JavaScript error on the page. Please post a link to the form so I can take a quick look.

Bob
jmahun 13 Jun, 2014
My test site is at http://www.gwillis.net/. All the items under Home in the menu are different forms.
JM
GreyHead 13 Jun, 2014
Hi jmahun,

There's an error on the page which appears to be coming from the Beez hide.js file which I think is being used for the menu display.

You can see the error on the Home page where there is no form as well as on the form pages.

Bob
jmahun 15 Jun, 2014
It appears to be a template conflict. I was looking at the Resolving JQuery Problems how-to doc and decided to try switching templates (rather than modify template code). I had been using the Beez3 template so I switched to the prostar template. I tried a few of my forms and Captcha and validation are working correctly.
This topic is locked and no more replies can be posted.