Smart forms with Captcha
-
- Forum Members
- Posts: 235
- Joined: Mon Nov 26, 2018 3:09 pm
Smart forms with Captcha
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
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
If you test with one of the default forms, does it work there?
Not getting the answer you need? CMSMS support options
-
- Forum Members
- Posts: 235
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Smart forms with Captcha
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
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
-
- Forum Members
- Posts: 235
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Smart forms with Captcha
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
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
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
-
- Forum Members
- Posts: 235
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Smart forms with Captcha
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?
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?
-
- Forum Members
- Posts: 235
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Smart forms with Captcha
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)
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
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.
-
- Forum Members
- Posts: 235
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Smart forms with Captcha
Yes, I did already try that thanks.
Re: Smart forms with Captcha
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
-
- Forum Members
- Posts: 235
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Smart forms with Captcha
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
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.
-
- Forum Members
- Posts: 235
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Smart forms with Captcha
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
Did this get solved in the meantime? I seem to have a similar problem.