Recaptcha v2 for Chronoforms V4 J1.5

ChronoDenis 30 Mar, 2017
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
Max_admin 31 Mar, 2017
1 Likes
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ChronoDenis 31 Mar, 2017
I addthe google code:
<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?
GreyHead 01 Apr, 2017
1 Likes
Hi ChronoDenis ,

I would expect this to break the form page. If you are still using Joomla! 1.5 then I suggest that you stay with the old ReCaptcha.

Bob
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger