cancel
Showing results for 
Search instead for 
Did you mean: 

CAPTCHA in combination with Sapui5 - Gateway

Former Member
0 Kudos

Hi,

Is there anyone who can give me some info on how I should implement a captcha (like google's reCAPTCHA) in a sapui5 application, connected to a SAP backend using SAP Gateway.

Thanks,


R.Wuyts

Accepted Solutions (0)

Answers (1)

Answers (1)

vijay_kumar49
Active Contributor
0 Kudos

Please refer this document and try below this code.it may be useful and Add captcha in sapui5 application | SCN


Kindly let me know if you need any more information

Former Member
0 Kudos

Thanks, but I'm not using Neptune, and I've already read the other discussion.

vijay_kumar49
Active Contributor
0 Kudos

Have you checked this one

Try below example code and refer Validating Google reCAPTCHA - FormValidation

<html>

  <head>

    <title>reCAPTCHA demo: Explicit render after an onload callback</title>

    <script type="text/javascript">

      var onloadCallback = function() {

        grecaptcha.render('html_element', {

          'sitekey' : 'your_site_key'

        });

      };

    </script>

  </head>

  <body>

    <form action="?" method="POST">

      <div id="html_element"></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>