I am having an issue with Netlify forms. I have successfully installed a form on a separate website of mine that is hosted on Netlify, but can’t seem to get this one to work below.
When I hit submit, I get a PAGE NOT FOUND, 404 error.
Hiya, sorry you are having trouble getting your forms to work.
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 have gone through the support guides and read through the forums - nothing has worked.
Both links below were built by me. I got the form working on trevorcapozza.com but when I copy/pasted the code into projectpassive.io, it does not work. Everything else is the same.
I appreciate your patience here and recognize we haven’t been able to work through this with you yet. We have been a bit underwater recently with a high volume of inquiries.
@jonsully, do you have any thoughts on this currently? Please let us know
Are you sure the code is correct? When hitting the submit button I’m redirected away from Vue and into Netlify’s own 404 page. This probably isn’t right, are you missing a native.prevent ?
With Vue, logically, even if it doesn’t work, it shouldn’t actually change the page.
It’s not actually a Vue form in this case. Vue does indeed render the form, but it’s not hooking into the submit event or anything. Just rendering the plain HTML and letting the browser natively handle the form submission event
Hi, @tcapozza. When Netlify’s form parser analyses a page with a <form> tag on it, our service will add a hidden <input> to the form so that when it is submitted, it includes a “form-name” field which matches the form.
On the site where this is working, you have two forms defined, “Contact” and “contact”. The “form-name” <input> is “contact” so the lower case form is the one receiving the submissions. You can see this at “Site Name” > Forms in on web UI.
For the non-working site, there is only a single form named “Contact”. Because the POST is sending “contact” it doesn’t match any forms for that site and returns a 404.
Also, if you just completely delete that line, Netlify will automatically insert the correct <input> (provided the form is correctly parsed). In other words, it is normally not required (nor recommended) to manually create that <input>.
If there are other questions about this, please let us know.
Hello @luke having the same issue with @tcapozza and I have followed the exact sample on this thread but it’s still not working. Do you know what the problem is ?
Thanks for reaching out and welcome to Netlify’s Support Forums!
As mentioned above, we have a Support Guide on common form issues to help with troubleshooting:
Could you review the guide to see if that helps with resolving the issue?
If you continue to have issues, could you provide us with form name as it appears in the UI, along with a link to your live form, and a brief description of what debugging steps you have taken. Additionally, please provide the name of your site (for example: “sitename.netlify.com” Thank you.