I'm working on a new form in Chronoforms 6 - my first time using it - and am having an issue with reCAPTCHA.
I have reCAPTCHA in the form and the keys inputted properly. It's working on the form, but I am still able to complete the form without doing anything with reCAPTCHA.
How do I enforce reCAPTCHA so the form cannot be submitted without completing it?
I don't think Max has the flag set as required for the reCaptcha response textarea. So you just need to check it in your submit event.
HI emills01,
The Google ReCaptcha check only runs finally after the form is submitted so that it the 'usual' way to check it.
If you Google around you will find some examples of JavaScript that you can use to check that the user has checked the ReCaptcha but they may not be simple to add.
Bob
Hi emills01,
You are probably misunderstanding,
If you check the sample contact form in CFv5 you will see that the first action in the On Submit event is a Check Google ReCaptcha and it has an Event Loader action in the pink On Fail event. How this works is that when the form is submitted the first thing that happens is that the ReCaptcha code is checked. if it fails then for is redisplayed; if it succeeds then the for processing continues.
Because any script on the front-end can be fairly easily hacked the final Google check needs to take place on the server where you, and not the user, are in control.
Bob
I'm still not sure I follow. This is CF 6 for Wordpress BTW.
I was able to submit the form without checking reCaptcha (v.2 with background validating - no image clicking if that means anything)...
There is a check recaptcha action . Put it as the first item in your submit event. On fail, load the load event again.
Event loader set to the "load" event will do that
As to the message, have a look it's right there
In the actions tab under basic