I have submitted my form on and my cousin has too on the live site but it doesn’t seem to have been picked up. I can’t see it in submissions. I am not sure what I am doing wrong.
My site is static. The HTML Form element also has the below attributes
I’m seeing some invalid markup, which might or might not be causing the issue, but it’s worth trying: enctype="”multipart/form-data”". Notice the presence of multiple quotes in the attribute.
As far as I know, fetch is already async and it doesn’t need to be prefixed as such. But a more detailed code as help us check exactly what’s happening.
Thank you! I will try this out now. How odd that my task runner didn’t pick up the errors in the JS especially the one without a closing tag. I will let you know shortly!
It’s because you’ve enabled data-netlify-recaptcha="true" but not added a <div data-netlify-recaptcha="true"></div> inside the form. Read about it here: Spam filters | Netlify Docs Same is true for bot field but I just tested and it doesn’t cause any issues with submission, it just defeats the purpose of using that feature. However, the ReCaptcha is causing problems. I just used your form code on a demo website (didn’t use JavaScript), and got the submissions.
Hi, @LisaKim. Did you change the DNS settings? I ask because that site (https://lisakimfit.com/) isn’t hosted at Netlify at this time:
Name server records (type = NS):
lisakimfit.com. 1799 IN NS pdns1.registrar-servers.com.
lisakimfit.com. 1799 IN NS pdns2.registrar-servers.com.
Records for the apex domain (type = A):
lisakimfit.com. 1798 IN A 198.54.120.162
Records for www subdomain:
www.lisakimfit.com. 1798 IN CNAME lisakimfit.com.
lisakimfit.com. 1798 IN A 198.54.120.162
Also, you have an inactive Netlify DNS zone for this domain here:
That DNS zone must be deleted or activated. There is more about why and how to do so here:
So, the forms on that page are not being submitted to Netlify because Netlify isn’t the web host for that domain.
Please let us know if there are other questions about this.
I have removed the inactive DNS zone. I didn’t think that I needed to host my site via netlify for the form submissions to work as it is hosted elsewhere. I also didn’t see this in the guides for forms.
Hi, @LisaKim. All of our documentation assumes the site is hosted at Netlify.
Much like the menu of a restaurant only applies when eating at that restaurant, our documentation only applies if we host the site (and in your case we do not).
When you make the DNS record that point this domain to the IP address 198.54.120.162, that is where you send all the traffic. When you submit a form, you submit it to 198.54.120.162.
Netlify doesn’t have anything to do with this IP address. We don’t control it and we cannot see the HTTP request that submits the form to it.
So, the form submissions don’t work at Netlify because you don’t send the form submissions to us. This is like addressing a letter to Ada and then wondering why Bobby didn’t get the letter. Bobby didn’t get the letter because you sent it to Ada.
Now, I do see you do have a site at Netlify without a custom domain (using a name similar to something-here-abc123.netlify.app. We can troubleshoot those form submission if you like.
Do you want us to troubleshoot there? If so, would you please confirm the site’s subdomain at Netlify?
If there are any other questions, please reply here anytime.