Can't receving form messages!

Hello!

I’m having issue of receving form messages on netlify after i embed the Recaptcha into my code! Can you guys please check my code? what’s wrong here!

<form

          class="form__inputs flex flex--d--c"

          data-netlify="true"

          method="POST"

          data-netlify-recaptcha="true"

        >

          <input

            spellcheck="false"

            type="text"

            placeholder="Enter your name"

            name="name"

            required

          />

          <input

            spellcheck="false"

            type="email"

            placeholder="Enter your email"

            name="email"

            required

          />

          <textarea

            spellcheck="false"

            placeholder="How can i help you?"

            name="messsage"

            cols="30"

            rows="10"

            name="messsage"

            required

          ></textarea>

          <div

            class="g-recaptcha recap"

            data-sitekey="6LcRvdEZAAAAAPEZuA2nuDpg43qzozqg87iQ_M4g"

          ></div>

          <button class="form__cta cta" type="submit">Submit</button>

        </form>

$(".form__inputs").submit(function (e) {

  e.preventDefault();

  var $form = $(this);

  $.post($form.attr("action"), $form.serialize()).then(function () {

    var recap = $("#g-recaptcha-response").val();

    if (recap == "") {

      alert("Prove that you are not a robot!");

    } else {

      $("form").hide();

      $(".done").delay(1000).show();

    }

  });

});

Hi, @mithat552.

This Support Guide is the first port of call to debug any forms issues. There are also many other Support Guides for forms - you can find them here: #Netlify-support:support-guides

We also recommend trying to search the forums or look at topics tagged Netlify forms if you haven’t already - it’s likely your question was already asked by someone else!

If you are still having problems, please provide more information such as what you have already tried, and a link to your live form. I see you posted the code for the form but we need to test the actual site to debug the issue. :+1:

1 Like

Hey Luke!

First of all my form was working normally until i did embed the recaptcha on my page. I still couldn’t find where the issue is and couldn’t find any topic in respect to this.

here is my website www.mithatercan.com

-Addition-

When i deleted recaptha and took my form out of section, it started working and i started receving messages from submission. But how to fix it tho? i mean i want to use recaptha and have my form in a section!

Anyone can help me to get rid of this issue??!!