How to Make ReCaptcha a Required Field

Twisk 17 Apr, 2014
We just got some spam on our form so I filled it out and left ReCaptcha blank. Ah! It wasn't set as a required field.

...so I went into Chronoforms but cannot see how to make ReCaptcha be required.


(I've been looking through the forums to see if I can find an answer, I'll keep looking but so far I hadn't found an answer.)
Twisk 17 Apr, 2014
Okay, watched the video a few more times. I missed the 'event loop'.

Now the form is almost working correctly. It's going to be much easier to show than to type out what I'm seeing, made a quick/unlisted video on YouTube...

http://youtu.be/YME_zbdA8GY
GreyHead 18 Apr, 2014
Hi Twisk,

The form isn't live (or I can't find it) which makes it hard to diagnose. This may be a problem with SEF URLs and that the form is not submitting; or it might be a JavaScript problem with making the ReCaptcha required.

Does it work if you use the Test Form or View Form links from the forms manager?

Bob
Twisk 18 Apr, 2014
Sorry 'bout that, my boss asked me to take it offline 'cause of the spam.

The same thing happens when you click 'Test Form' and try it that way. Here's the URL for that...

http://www.chroma-imaging.com/contactus2.html


The form submits correctly if you fill out ReCaptcha correctly. It's just that if you skip it or fill it out incorrectly and try to submit, ReCaptcha disappears.
Twisk 18 Apr, 2014
Quick update: I was using ACE SEF for SEF URLs. I deactivated them and tested the form again.

It submits correctly, but same thing if you skip it or get the ReCaptcha wrong. It won't submit (which is good) but the ReCaptcha box disappears.
GreyHead 19 Apr, 2014
Hi Twisk,

Do you have the Ajax Submit turned on? I don't know much about it but I suspect that won't work with ReCaptcha.

Bob
Twisk 19 Apr, 2014
I did have an Ajax plug-in for the front-end of the site, but it's disabled. Not sure if that's what you mean or something else maybe?
GreyHead 20 Apr, 2014
Answer
Hi Twisk,

In ChronoForms v5 there's an AJAX submit setting in the HTML (render form) action.. What is that set to?

Bob
Twisk 21 Apr, 2014
I just checked and it was set to 'YES'.

I set it to 'NO', saved, cleared my browser's cache and tested the form. Presto! That did the trick, thank you yet again!! 🙂
This topic is locked and no more replies can be posted.