title: Recaptcha v3 not working - form doesn't submit
body: <p>I am trying to implement recaptcha v3 in CakePHP 3.x. My template page looks like:</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php $this-&gt;start('script'); ?&gt;
  &lt;script src=&quot;https://www.google.com/recaptcha/api.js&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
      function registerSubmit(token) {
          document.getElementById(&quot;register&quot;).submit();
      }
  &lt;/script&gt;
  &lt;?php $this-&gt;end(); ?&gt;
  ...
  &lt;?php echo $this-&gt;Form-&gt;create($user, [ 'id' =&gt; 'register', 'name' =&gt; 'register']) ?&gt;
  ...
  &lt;button type=&quot;submit&quot;
          data-sitekey=&quot;&lt;?php echo Configure::read('Captcha.site')?&gt;&quot;
          data-callback='registerSubmit'
          data-action='submit'
          class=&quot;g-recaptcha btn btn-lg btn-secondary text-uppercase&quot;&gt;Get Started&lt;/button&gt;
  &lt;?php echo $this-&gt;Form-&gt;end(); ?&gt;
  </code></pre>
  <p>As far as I can tell the <code>registerSubmit</code> call never gets executed and my form doesn't submit - why?</p>
  <p>I followed the instructions on the <a href="https://developers.google.com/recaptcha/docs/v3" rel="nofollow noreferrer">Google Developers page</a></p>