title: Google reCAPTCHA V2 JavaScript We detected that your site is not verifying reCAPTCHA solutions
body: <p>Error Message
  <strong>We detected that your site is not verifying reCAPTCHA solutions. This is required for the proper use of reCAPTCHA on your site. Please see our developer site for more information.</strong>
  I created this reCaptcha code, it works well but I don not know how can I validate it, I thought it was validating with the function
  <code>grecaptcha.getResponse();</code> but it was not so.
  Apparently The recaptcha worked well on the website but I just saw in Google admin the next message:
  <a href="https://i.stack.imgur.com/OkbMO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OkbMO.png" alt="enter image description here"></a></p>
  
  <p><strong>Requirements:</strong>
  1.Do not use <code>action="file.php"</code> in the form, only a javascript function in the form.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>     &lt;!DOCTYPE&gt;
  &lt;html&gt;
  &lt;head &gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;script src='https://www.google.com/recaptcha/api.js'&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          function get_action() {
              var v = grecaptcha.getResponse();
              console.log("Resp" + v );
              if (v == '') {
                  document.getElementById('captcha').innerHTML = "You can't leave Captcha Code empty";
                  return false;
              }
              else {
                  document.getElementById('captcha').innerHTML = "Captcha completed";
                  return true;
              }
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" onsubmit="return get_action();"&gt;
      &lt;div&gt;
      &lt;div class="g-recaptcha" data-sitekey="6LdNIlAUAAAAADS_uVMUayu5Z8C0tw_jspdntbYl"&gt;&lt;/div&gt;
      &lt;/div&gt;
     &lt;input type="submit" value="Button" /&gt;
     
      &lt;div id="captcha"&gt;&lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>May you help me Please. I would appreciate it a lot
  How can I validate it since I need to use a javascript function <code>onsubmit="return get_action();"</code> instead of <code>action="file.php"</code> *when I submit?:</p>