Google Re/NoCaptcha is Not Working (for me at least)

How to fix Google reCAPTCHA not working in ChronoForms.

Overview

The issue is caused by having both automatic server validation enabled and a separate reCAPTCHA check action, which results in the captcha being validated twice and failing.
Disable the automatic server validation in the form settings or remove the separate check reCAPTCHA action from your form's submit actions.

Answered
ChronoForms v6
in indieben 14 Aug, 2019
Hello, i'm a bit lost as to why the Chronoforms that i've installed looks rather different to my other v6 install. Also, with the new layout it has thrown me a bit. Here's a view of it - I have no idea whether i'm being offered the wrong version to download as my other Chronoforms V6's don't look like this and i've reinstalled just to be sure:

https://snag.gy/Tz9K3V.jpg

So, I have (in the pages -> views (where i've put all of the form fields) - a "Google Recaptcha". I've obtained a secret and a site key and i've double checked them and ensured that they are the correct way around.

Here's a view of that -
https://snag.gy/dBLmQM.jpg
In the submit -> Actions I have a "check Google recaptcha" at the very start. Again it asks me for the secret key. I've also double checked that this is correct. Here's a view of that:

https://snag.gy/t1PbK9.jpg

From a debug perspective, it appears that the captcha is being checked twice (I note it says the secret key isn't provided but it is ):
Array
(
[chronoform] => contact-us
[event] => submit
[your_name] => Joe
[email_address] => [emailremoved]@riseup.net
[subject] => Website News Submission
[your_message] => Test 232
[g-recaptcha-response] => 03AOLTBLSu6O5Oijc_sWPoKnLSiRgnnByDmt1oE3xOb_CaBY6HMtkXLD0SHFMOO8AGSxUk8EeHC8-O0nJzbwunC_ePhZZbSoJ1v-ITwDXPQBfEpAJaeSU3BdYs97rmCEkRDfuPb9RAK3dEwRYqq4dMYQyVVHgBpFVbKAYjfsECJE4CXuJ19PWUoCX0y9qBRCe_fKXw728nHo2LRsMBdM5SST3bxOOubHpEqH_SN2TX4QwmDJmyH1E9qzs9AXGep5JyfNBTbD52vE_7r4I_YVGgo1WOLFqAqzKT3bWvd6kp2waA92XllFYIQu_aNtfv7-FVn_n827JyB2Dn
[button6] =>
[Itemid] => 110
[option] => com_chronoforms6
[view] => form
)
Array
(
[submit_google_nocaptcha] => Array
(
[response] => Array
(
[success] => 1
[challenge_ts] => 2019-08-14T18:16:04Z
[hostname] => www.croydondrive.org.uk
)

[_success] => The NoCaptcha verification was successfull.
[var] => 1
)

[submit_validate_fields] => Array
(
[log] => Automatic validation enabled.
[var] => 1
)

[google_nocaptcha2] => Array
(
[_error] => No secret key is provided.
[var] =>
)

)

Thanks and Kind Regards :-) From someone pulling their hair out!
he healyhatman 15 Aug, 2019
Answer
2 Likes
Automatic validation is enabled, so you need to either remove your check recaptcha action OR disable automatic validation (first tab)
in indieben 15 Aug, 2019
Thanks dude! Legend! Why do I not have the classic v6 layout anymore - probably something i'm doing wrong or is there some totally new layout!

Thanks🙂
dw dwirianto 16 Aug, 2019
1 Likes
FTW! I didn't notice "Enable server validation"selection on the Setting tab is activated by default in all new Chronoforms6 interface. Thanks @healyhatman
This topic is locked and no more replies can be posted.