Skip Navigation

[Resolved] Post form does not require reCAPTCHA

This thread is resolved. Here is a description of the problem and solution.

Problem:

I want users to be required to solve reCAPTCHA v2 before submitting.

Solution:

You can follow our document to setup the reCAPTCHA v2 in Toolset Forms.

Relevant Documentation:

https://toolset.com/documentation/user-guides/front-end-forms/protecting-forms-from-spam/

This support ticket is created 4 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 3.10 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 3 voices.

Last updated by Jack Regehr 4 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1613267
Contactform.png

Tell us what you are trying to do? I want users to be required to solve reCAPTCHA v2 before submitting.

Is there any documentation that you are following?
https://toolset.com/documentation/user-guides/front-end-forms/protecting-forms-from-spam/
hidden link

Is there a similar example that we can see?
hidden link

I have added the header script, the g-recaptcha div and the site key and the secret key.
The same issue is happening on all four 'Cred' forms.

#1613817

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I'm not sure whats happening with your site as when I've tested the Captcha with my localhost, it works as expected.

However, when I checked the problem URL you shared and checked the source code I can see few JS errors on the browser's console.

Can you please make sure you are using the latest Toolset plugins.

#1615461
Toolsetupdates.png

All plugins are up to date.

#1616445

Hello,

Minesh is on vacation, I will take care of this ticket.

I have checked the URL you mentioned above, I see some JS errors in my Chrome browser console window, for example:

Uncaught TypeError: Cannot read property 'extend' of undefined

resizable.min.js:11 Uncaught TypeError: Cannot read property 'add' of undefined

draggable.min.js:11 Uncaught TypeError: Cannot read property 'add' of undefined

utils.js:12 Uncaught ReferenceError: Backbone is not defined

frontend.js:647 Uncaught ReferenceError: _ is not defined

validation.js:393 Uncaught ReferenceError: _ is not defined

It should be a compatibility issue of your website, please check these:
1) deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP/JS code, and test again
2) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

#1623519

I will look into it.