Page 1 of 2

Smart forms with Captcha

Posted: Tue Dec 17, 2024 12:25 pm
by johnboyuk1
Hi, I'm having trouble making this work. My forms are being submitted whether the captcha is completed or not

I have the captcha module installed and the keys in place

Its displaying in the form ok

I have the 'Validate Captcha' option in the forms validation tab

What am I missing?! Its just not actually validating the captcha

Re: Smart forms with Captcha

Posted: Tue Dec 17, 2024 3:13 pm
by DIGI3
If you test with one of the default forms, does it work there?

Re: Smart forms with Captcha

Posted: Tue Dec 17, 2024 3:41 pm
by johnboyuk1
I dont actually have a default form any more - as the one im using is just an adapted version of the default contact form that came installed with SmartForms

Re: Smart forms with Captcha

Posted: Tue Dec 17, 2024 3:55 pm
by DIGI3
I'd test the sample forms on a clean install on the same server so you can figure out whether it's an issue with your form setup or not. Try different PHP versions, and check both the php error log and the admin log.

Re: Smart forms with Captcha

Posted: Tue Dec 17, 2024 4:03 pm
by johnboyuk1
Ok. Am running php 7.4. Nothing obvious in the logs. And the form has only been minimally changed from the default the standard SmartForms contact form.

Have just tested with the default 'Advanced Contact Form' and same issue - reCaptcha is bypassed, no validation check

Ive also tested on a completely different website - same issue, no matter what Captcha type is selected (HN Captcha, reCaptcha etc) its not being validated

Re: Smart forms with Captcha

Posted: Tue Dec 17, 2024 5:43 pm
by DIGI3
Can't really think of anything else. Check that the keys you're using match the version of captcha selected - I think the module only supports reCaptcha v2, for example. You can also check the reCaptcha console on Google (if that's what you're using) to see if it has any clues, there is a log of sorts.

Re: Smart forms with Captcha

Posted: Wed Dec 18, 2024 9:44 am
by johnboyuk1
Yes - keys are working, I already worked out I had to use V2. ReCaptcha console hasn't received any data at all

I'm guessing is a Smart Forms issue as Ive used this process fine with Form Builder (Form Builder doesn't seem to work any more so cant switch to that)

Is anyone else able to test/confirm whether they have Captcha working with Smart Forms?

Re: Smart forms with Captcha

Posted: Wed Dec 18, 2024 12:58 pm
by johnboyuk1
Ive managed to get Form Builder working (via a workaround)

Captcha is working as expected in Form Builder therefore suggests the problem is with Smart Forms (not the captcha module, or the captcha keys)

Re: Smart forms with Captcha

Posted: Wed Dec 18, 2024 4:57 pm
by WDJames
Have you tried removing the validations and then re-adding them via the "Auto Add Validations" button? I seemed to have the same issue before with CGBetterForms.

Re: Smart forms with Captcha

Posted: Wed Dec 18, 2024 4:59 pm
by johnboyuk1
Yes, I did already try that thanks.

Re: Smart forms with Captcha

Posted: Wed Dec 18, 2024 6:09 pm
by DIGI3
I'm using reCaptcha fine on lots of SmartForms installations, so it seems unique to your install. I don't have any other suggestions unfortunately.

Re: Smart forms with Captcha

Posted: Thu Dec 19, 2024 9:27 am
by johnboyuk1
ok thats strange as I tried it on 2 different installs - am I missing a setup step in smart forms somewhere?

Re: Smart forms with Captcha

Posted: Mon Dec 23, 2024 11:24 am
by WDJames
Can you clarify that the reCaptcha is visible? Also, have you tried using one of the other captcha libraries? Just tried on a fresh install with php 7.4 and can confirm it working as intended.

Re: Smart forms with Captcha

Posted: Mon Dec 23, 2024 12:39 pm
by johnboyuk1
yes - is visible and have tried other libraries. Is just not getting validated - it doesnt matter if you complete the captcha or not, the form just gets submitted.

Re: Smart forms with Captcha

Posted: Wed Feb 05, 2025 10:03 am
by jog
Did this get solved in the meantime? I seem to have a similar problem.