Smart forms with Captcha

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
johnboyuk1
Forum Members
Forum Members
Posts: 235
Joined: Mon Nov 26, 2018 3:09 pm

Smart forms with Captcha

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1791
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Smart forms with Captcha

Post by DIGI3 »

If you test with one of the default forms, does it work there?
Not getting the answer you need? CMSMS support options
johnboyuk1
Forum Members
Forum Members
Posts: 235
Joined: Mon Nov 26, 2018 3:09 pm

Re: Smart forms with Captcha

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1791
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Smart forms with Captcha

Post 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.
Not getting the answer you need? CMSMS support options
johnboyuk1
Forum Members
Forum Members
Posts: 235
Joined: Mon Nov 26, 2018 3:09 pm

Re: Smart forms with Captcha

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1791
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Smart forms with Captcha

Post 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.
Not getting the answer you need? CMSMS support options
johnboyuk1
Forum Members
Forum Members
Posts: 235
Joined: Mon Nov 26, 2018 3:09 pm

Re: Smart forms with Captcha

Post 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?
johnboyuk1
Forum Members
Forum Members
Posts: 235
Joined: Mon Nov 26, 2018 3:09 pm

Re: Smart forms with Captcha

Post 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)
WDJames
Forum Members
Forum Members
Posts: 81
Joined: Tue Feb 13, 2018 1:09 pm

Re: Smart forms with Captcha

Post 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.
johnboyuk1
Forum Members
Forum Members
Posts: 235
Joined: Mon Nov 26, 2018 3:09 pm

Re: Smart forms with Captcha

Post by johnboyuk1 »

Yes, I did already try that thanks.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1791
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Smart forms with Captcha

Post 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.
Not getting the answer you need? CMSMS support options
johnboyuk1
Forum Members
Forum Members
Posts: 235
Joined: Mon Nov 26, 2018 3:09 pm

Re: Smart forms with Captcha

Post by johnboyuk1 »

ok thats strange as I tried it on 2 different installs - am I missing a setup step in smart forms somewhere?
WDJames
Forum Members
Forum Members
Posts: 81
Joined: Tue Feb 13, 2018 1:09 pm

Re: Smart forms with Captcha

Post 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.
johnboyuk1
Forum Members
Forum Members
Posts: 235
Joined: Mon Nov 26, 2018 3:09 pm

Re: Smart forms with Captcha

Post 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.
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Re: Smart forms with Captcha

Post by jog »

Did this get solved in the meantime? I seem to have a similar problem.
Post Reply

Return to “Modules/Add-Ons”