No webpage was found after submitting a form


my site is, the form is at the bottom, and when I submit the form I get Page Not Found. I searched the forums and tried some stuff but I can’t make it work. Also, I am a bit of a newbie maybe I did something wrong

@trimidis It looks like there’s a few things wrong, you should work back through the documentation.

The forms documentation is here:

The main support guide is here:

Note that Netlify only detects forms that are actually in the HTML of the site at the conclusion of your build, and your page is an SPA (Single Page Application) where the form is being rendered into the page via JavaScript at runtime. Notice how there is no form in the source of your /index.html:

  • Enable Form Detection
  • Ensure there is an actual HTML form for it to detect (either hidden in the main /index.html or in some other file)

Once that portion of it is set up correctly you will see the form being detected in your build log.

You will also find that as is mentioned in the documentation:

When Netlify parses the static HTML for a form you’ve added, the build system automatically strips the data-netlify="true" or netlify attribute from the <form> tag and injects a hidden input named form-name. In the resulting HTML that’s deployed, the data-netlify="true" or netlify attribute is gone, and the hidden form-name input’s value matches the name attribute of <form>

1 Like

I inserted the form straight into the index.html and worked.