Hi,
I tried to implement Google's recaptcha v3 to one of your forms by adding the following script. However, when the form.submit(); is called, the form is submitted to another page. So it is not submitted through your AJAX implementation and I don't see the green response message on the top-right corner of the screen. How can I have recaptcha with your forms?
Thanks,
Serhat
<script>
grecaptcha.ready(function() {
$('#widget-subscribe-form').submit(function(e) {
var form = this;
e.preventDefault();
grecaptcha.execute('6LdMfw8aAAAAAD3CoHZK0b6HOjIRjtSYB2J5szs7', {action: 'submit'}).then(function(token) {
$('#id_recaptcha').val(token);
console.log('Token: ' + token);
form.submit();
});
});
});
</script>
