Hello,
I am a happy user of Chronoforms. Thank you for that.
But now I am trying to integrate Google Recaptcha v2 on Chronoforms V4 J1.5.
Unfortunately I can not make Server side validation, so captcha is in the forms but does not functioning.
What is the best way to
I am a happy user of Chronoforms. Thank you for that.
But now I am trying to integrate Google Recaptcha v2 on Chronoforms V4 J1.5.
Unfortunately I can not make Server side validation, so captcha is in the forms but does not functioning.
What is the best way to
Hi Denis,
Unfortunately Recaptcha v2 is not available in Chronoforms v4 and you will have to use one of the other anti spam actions.
Best regards,
Max
Unfortunately Recaptcha v2 is not available in Chronoforms v4 and you will have to use one of the other anti spam actions.
Best regards,
Max
I've already installed it . The only problem is server side validation verify it.
I am using examples from https://developers.google.com/recaptcha/docs/display#js_api but something blocks it.
I addthe google code:
to the form code > form html tool
What else is needed?
<html>
<head>
<title>reCAPTCHA demo: Explicit render for multiple widgets</title>
<script type="text/javascript">
var verifyCallback = function(response) {
alert(response);
};
var widgetId1;
var widgetId2;
var onloadCallback = function() {
// Renders the HTML element with id 'example1' as a reCAPTCHA widget.
// The id of the reCAPTCHA widget is assigned to 'widgetId1'.
widgetId1 = grecaptcha.render('example1', {
'sitekey' : 'your_site_key',
'theme' : 'light'
});
widgetId2 = grecaptcha.render(document.getElementById('example2'), {
'sitekey' : 'your_site_key'
});
grecaptcha.render('example3', {
'sitekey' : 'your_site_key',
'callback' : verifyCallback,
'theme' : 'dark'
});
};
</script>
</head>
<body>
<!-- The g-recaptcha-response string displays in an alert message upon submit. -->
<form action="javascript:alert(grecaptcha.getResponse(widgetId1));">
<div id="example1"></div>
<br>
<input type="submit" value="getResponse">
</form>
<br>
<!-- Resets reCAPTCHA widgetId2 upon submit. -->
<form action="javascript:grecaptcha.reset(widgetId2);">
<div id="example2"></div>
<br>
<input type="submit" value="reset">
</form>
<br>
<!-- POSTs back to the page's URL upon submit with a g-recaptcha-response POST parameter. -->
<form action="?" method="POST">
<div id="example3"></div>
<br>
<input type="submit" value="Submit">
</form>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
async defer>
</script>
</body>
</html>
to the form code > form html tool
What else is needed?
This topic is locked and no more replies can be posted.