Recaptcha works one one form but error on another

hangbill 16 Aug, 2019
Hi
Recaptcha works fine on one form, but with exact same specs (site and secret keys) on another form get error "you didn't pass the recaptacha verification".
Any ideas?
Thanks
hangbill 16 Aug, 2019
In the form that generates the error messg, the form does submit properly - but shows error messg.
Seems it's submitting twice, passing the first and failing the second.
The form has three fields, not linked to database, no validation settings.

Array
(
[chronoform] => contact-ciu
[event] => submit
[your_email] => xxxxx@gmail.com
[subject] => bcv
[your_message_to_ciu_administrator] => vb
[g-recaptcha-response] => 03AOLTBLQSWzNeSOlp0uuqPThsE7eNz_XCa6zIw0kOzT6psvVqmxF5MJfB3NbSxJJ-cNgXmIFD5JtyCTOBDehQ1hiQYFO1yoyAw8V0jMPHmwzqm9bX25JJwfpLUx6SmaWRfwoKXqosux4eSD94qLgfEoAZpKWD-CDRA1G8VPRHK416okcj9rZyC2SdguDA15wsThYGPpEw_5fywB9aaOIj2Vpc9kF7e9TOJOnKka2Ynp_fELCNn6AJJkNdzM5cMxy2D04S_5Hyp7n3Q5lsX_U1FZm_4jtcruFawDlNGgNa0zNa-kuycGkvjDSTXnkT6CUXhEntsgXFr3jo
[button3] =>
[c15ac33870a5a8edc5e3ef3028162d5c] => 7d44107a5cde57c2085c2320c61b47cb
[4169a329d285cac9d4a611e5497a06a9] => d6f91bfc6bbaa23e9312c1890ad56dc9
[joomla_user_state] => logged_in
[Itemid] => 2277
[option] => com_chronoforms6
[view] => form
)
Array
(
[submit_google_nocaptcha] => Array
(
[response] => Array
(
[success] => 1
[challenge_ts] => 2019-08-16T13:47:43Z
[hostname] => www.xxxx.com
)

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

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

[google_nocaptcha8] => Array
(
[response] => Array
(
[success] =>
[error-codes] => Array
(
[0] => timeout-or-duplicate
)

)

[_error] => The NoCaptcha verification has failed.
[var] =>
)

)
hangbill 16 Aug, 2019
Have just seen post below mine with same issue. Have disabled "enable data validation" on settings tab but still prob => timeout or duplicate
Array
(
    [option] => com_chronoforms6
    [cont] => manager
    [chronoform] => contact-ciu
    [event] => submit
    [your_email] => lygy@mailinator.com
    [subject] => Velit quisquam provi
    [your_message_to_ciu_administrator] => In non voluptatibus 
    [g-recaptcha-response] => 03AOLTBLRxwXL2MNG5T7anfvb8pVVpMTLzeUqGAxMmTybG44GN2WNIFgFc1F-d-pReKdUF793jR2Y4PL9lPbiQ7liPkwELyQoe3Wql6VkNpMiq97539nDakxY5ox17p0VM8ajjc63vdYTjG6nKG-rUDTft907LTwjtjik3bdPI25ADw7jo-mvWz31qE6bn5p00kQqmzeo8FUGD2fRbBgR9YuMMYGD0MI1F_uxEW-eQMdCjEfYp61wNF50QE3wdozRXJlf3jIanwjnMpDWxxw4s4SXAoKFwFKII9fVF6HKyyg4WTbIMipB-hFW-BWrVB347Ubxd7BF2GN3W
    [button3] => 
    [c15ac33870a5a8edc5e3ef3028162d5c] => 7d44107a5cde57c2085c2320c61b47cb
    [4169a329d285cac9d4a611e5497a06a9] => d6f91bfc6bbaa23e9312c1890ad56dc9
    [joomla_user_state] => logged_in
)
Array
(
    [submit_google_nocaptcha] => Array
        (
            [response] => Array
                (
                    [success] => 1
                    [challenge_ts] => 2019-08-16T19:01:22Z
                    [hostname] => www.ublizi.com
                )

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

    [google_nocaptcha8] => Array
        (
            [response] => Array
                (
                    [success] => 
                    [error-codes] => Array
                        (
                            [0] => timeout-or-duplicate
                        )

                )

            [_error] => The NoCaptcha verification has failed.
            [var] => 
        )

)
hangbill 18 Aug, 2019
Any help on this one, thanks.
The form submits successfully but displays the error messg.
healyhatman 18 Aug, 2019
Just from looking at your debug, it's submitting the recaptcha check twice. Make sure you have only one action.
hangbill 18 Aug, 2019
Yes it does look like it but 1 action only. Same setup as another form that does not return error messg.
https://snipboard.io/WFErQU.jpg
healyhatman 18 Aug, 2019
OK well that's a bit odd then, and you DEFINITELY deactivated the "check security fields" option in the first tab?

Also just putting a debugger in there won't stop the form's events, it will still send the email. You need an event loader.
hangbill 19 Aug, 2019
OK, so that's my error. I had check security fields enabled. Suppose that was responsible for the double submission.
What is the purpose of that action?
healyhatman 19 Aug, 2019
To automatically check security fields instead of doing it through an action. The action let's you customise what happens if something isn't valid or lets you make more complicated conditional validation
hangbill 19 Aug, 2019
I thought Captcha, Honeypot etc is used to catch bot submissions. How do u do that with check security fields ?
healyhatman 19 Aug, 2019
It does it automatically, and redirects back to load automatically
hangbill 19 Aug, 2019
OK, so I still have to get Captcha keys but don't have to set any action?
healyhatman 19 Aug, 2019
That's right but I prefer doing it manually and controlling what happens
hangbill 19 Aug, 2019
Got it. Thanks for the help Healyhatman.
This topic is locked and no more replies can be posted.