I used a Gatsby starter template and have copy and pasted the example form from the docs into my code. When I deploy the site, the form registers and I am able to see the forms corresponding name on the dashboard, however no requests are coming through. I made no changes to the example code and literally copy and pasted it over, so it should be submitting?
I have read through the debugging help, but everything seems to be right and should be working. Is there an extra step needed to take if I am using Gatsby?
Let’s reset a bit. Have you walked through the debugging steps here?
They will likely lead you to the source of the problem. And if not, then you get an actionable request which is “show us the html file (not your source that may be in js) that has your form source code” which is what we’ll need to debug most quickly
Thanks for sharing the debugging article. I’ve read through it along with the docs and am still unable to make my form submit properly. When I click send, my page refreshes. I checked out the network tab of chromes dev tools and it appears the request returns a 404 error when the post request is made. My code can be viewed here:
I’m now able to receive the form data on submission after adding the hidden field mentioned in other posts. I didn’t see this in the official documentation, or may have just missed it Forms setup | Netlify Docs sorry for the trouble! However, the generic netlify success screen is not appearing? The form is submitted (and i receive the data on the dashboard) and the page simply refreshes with no default alert? Any ideas?
Thanks so much for your help and my apologies for the trouble!
Hi Gerald, thanks so much for your help. I received your test message on the dashboard. What’s strange is that when I submit the form from the page, the default Netlify thank you message does not pop up. The web page simply refreshes with no confirmation message or pop up. Did it show up on your end? Maybe it’s something with my computer? I’ll try on another computer when I have a moment.
After getting the form submissions to work, the issue was no longer with the submission itself but displaying Netlify’s default confirmation message. Not exactly sure what the issue was / is, so I made my own customer confirmation (what you’re seeing now) and it’ll work for my purposes. So we’re all set!
Many thanks to you and the rest of the team for helping me solve my issues! Really appreciate it!
When I looked at: view-source:https://saas.ie/contact-us/ (in Chrome), I don’t see any <form> generated in the static HTML of your website. If the <form> doesn’t exist in the static HTML version of the page, you might have to include a static copy of it in the static folder.