Forums

CF6 required Google NoCaptcha

deltafidesign 08 Aug, 2017
Joomla 3.7.4 - CF6 v 6.0.6

I've got my site key and secret key for NoCaptcha.
I've created a Google reCaptcha in Designer tab and assigned the site key
I've created a Check Google reCaptcha in Setup tab and assigned the secret key

Anyway the captcha seems not being required, I can submit the form even if I don't check the captcha. Why?

This is private content



What's wrong?

Thanks in advance.
healyhatman 09 Aug, 2017
Have you put an event loader in the "fail" tab of reCaptcha to redirect back to the form?
deltafidesign 09 Aug, 2017
I had an event loop before, now I've tested removing event loop and adding an event loader, now it seems that the form is not sent out but I see that it tryed to send (ajax loading my form) but then the form is shown again after loading as sending and this time there's no more chaptcha!

What else should I do?

Thanks in advance.
healyhatman 09 Aug, 2017
Ajax doesn't work properly with captcha and validation messages. Try turning off Ajax.
deltafidesign 09 Aug, 2017
Now in my tests it seems not working again, the form is always sent out (ajax or not)... I can't understand why.
healyhatman 09 Aug, 2017
So you have the Check Captcha action under "setup", and under Fail you have "Event Loader" that loads your load action again, and also has "Stop processing after switching" turned on?
deltafidesign 10 Aug, 2017
Thanks for suggestion about "Stop processing after switching", I've set it on now and seems work as expected with ajax off. Now the problem is that without ajax submitting form the page refresh and is displayed at the top instead beeing scrolled to the form where the alert message about captcha is displayed. So the user could not understand that the form is not sent and that he must check the captcha.

I'm trying with a redirect in the Fail but I'm not able to build the correct way to let it redirect to the self page using and anchor on the ID form. I've tryed with {page:url}#myID in the URL redirect parameter but it gives me back an url that do not exist like: https://www.mysite.com/mypage?chronoform=myform&event=submit#myID

How could I solve that?
This topic is locked and no more replies can be posted.