HTML make h-captcha form required in post form

611 views Asked by At

Hello I am currently trying to implement h-captcha into a html form in my website

However I noticed that by default its not "required" like for example text boxes can made to be

I havent found any good solutions out there who can help me out with this issue

Heres btw how I implement the h-captcha form itself

 <form action="/end" method="post">
      <button type="submit">Submit</button>
         <div class="h-captcha" data-sitekey="sitekey here" data-theme="dark"></div>
          <script src="https://js.hcaptcha.com/1/api.js" async defer</script>
    </form>
2

There are 2 answers

0
AudioBubble On

try importing the script in your header.

1
Ayden On

Even when importing to the head. I also found with my form the same issue. You can leave the hcaptcha and still proceed to submit