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 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
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
So you just need to check it in your submit event.
How do I do that?
The Google ReCaptcha check only runs finally after the form is submitted so that it the 'usual' way to check it.
Maybe i'm misunderstanding, but what is the point of using reCAPTCHA if it's possible to not force its use (at least easily or by default)?
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
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)...
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.
There is a check recaptcha action . Put it as the first item in your submit event. On fail, load the load event again
Ah - I see that now. I wasn't aware that it existed. What do I put in the "fail" box to make it reload? A quick Google search didn't provide the answer.
Also, is there something I should be putting in the "success" box? After submitting the form nothing really happens on the page; a thank you message would be nice but again I'm not able to find where to specify that.
Event loader set to the "load" event will do that
As to the message, have a look it's right there
As to the message, have a look it's right there
As to the message, have a look it's right there
I'm not seeing it. Apologies for my ineptitude.
If anyone dosen't mind pointing me in the right direction I'd appreciate it.
In the actions tab under basic
This topic is locked and no more replies can be posted.