recapture. v3

2 replies · opened Apr 25, 2021

GgunnerqApr 25, 2021

Hi I keep getting random emails, 20 a day from a form. They are just random text so have been tyring to install reCapture v3 but I am failing.

Hope you can help. I have added the script and both codes.

SSemicolon WebSTAFFApr 26, 2021

Hello,

The Codes you are using for reCaptcha v3 seems to be incorrect. Please consider using the following code for reCaptcha v3:
[ch_pre]

grecaptcha.ready(function() {
	grecaptcha.execute('YOUR-SITE-KEY', {action: 'contact_page'}).then(function(token) {
		// add token value to form
		document.getElementById('g-recaptcha-response').value = token;
	});
});

[/ch_pre]

Replace YOUR-SITE-KEY with your reCaptcha Site Key.

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

GgunnerqApr 27, 2021

Worked great. Thank you.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard