I am trying to deploy a simple static HTML Form from Github, but it is not being recognized by Netlify. I’ve tried changing between [netlify] and [data-netlify], manually adding the hidden form name input, disabling and reenabling Forms handling, with no success. The form has never been recognized as such. Any ideas?
@Daniel_Herr I don’t see either netlify
or data-netlify
on that form.
So potentially…
- The form has been processed and it has been removed
As the documentation says:
https://docs.netlify.com/forms/setup/#html-forms
When Netlify parses the static HTML for a form you’ve added, the build system automatically strips the
data-netlify="true"
ornetlify
attribute from the<form>
tag and injects a hidden input namedform-name
OR
- You don’t have form detection enabled
See: https://docs.netlify.com/forms/setup/#enable-form-detection
I’d expect the data-netlify="true"
to be missing once the form is processed.
To try and confirm that the processing is running you could try removing the:
<input type="hidden" name="form-name" value="test2">
As per the documentation it gets added from the <form name="test2"
once the form is processed.
You can also check your Build Log, I believe it mentions the forms detected.
Some of the processing is happening, because it does add the hidden input. But the form is not detected in the dashboard and submitting the form gives a 404. There’s also nothing about forms in the build log.
Just adding a note that this other user appears to be experiencing the same:
It seems like when the “Free & Starter” plan was introduced, the “Form detection” was not included in that plan, even tough on the Pricing page it states that it should be available in the free plan. Forms detection started to work when upgraded to the “Pro” plan.