Go to Advanced Settings
Toggle on reCAPTCHA

Configure reCAPTCHA Settings
<aside> ❗
Important Note
The g-recaptcha-response field is mandatory for reCAPTCHA to work. If this field is empty, the lead will not be created.
</aside>
Below is an example form showing how to embed the reCAPTCHA code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>reCAPTCHA v3 Test</title>
</head>
<body>
<h1>reCAPTCHA v3 Test Form</h1>
<form id="test-form" action="<https://localhost/api/webhook/33894875/c6df7ea8dbebf29d2f0c3b80a29109d95ca2a3fbc49f9a5c5fa8ec56c89291a6>" method="POST">
<label for="name">Name:</label><br>
<input type="text" id="name" value="John Doe" name="name" required><br><br>
<label for="email">Email:</label><br>
<input type="email" id="email" value="[email protected]" name="email" required><br><br>
<button type="submit">Submit</button>
</form>
<script src="<https://www.google.com/recaptcha/api.js?render=6LdD5pgqAAAAAHs7Bue0rMLB57GUMVGRLPRDVNHy>"></script>
<script>
document.getElementById('test-form').addEventListener('submit', function(event) {
event.preventDefault();
grecaptcha.ready(function() {
grecaptcha.execute('6LdD5pgqAAAAAHs7Bue0rMLB57GUMVGRLPRDVNHy', {action: 'submit'}).then(function(token) {
// Add the token to the form as a hidden input
let recaptchaInput = document.createElement('input');
recaptchaInput.setAttribute('type', 'hidden');
recaptchaInput.setAttribute('name', 'g-recaptcha-response');
recaptchaInput.setAttribute('value', token);
document.getElementById('test-form').appendChild(recaptchaInput);
// Submit the form after the token is added
document.getElementById('test-form').submit();
});
});
});
</script>
</body>
</html>
How it Works
<aside> 💡 Useful Links