I didn’t success on making form working with astro.build.
In order to netlify to see the forma I had to create a dummyform.html in the public directory otherwise form is not seen. With this the form is seen but the message is not received on my dashboard. After submitting, my success page is well seen.
I know it’s been processed, but I’d still expect the field to be there as per the documentation:
When Netlify parses the static HTML during post-processing, the build system automatically strips the netlify-honeypot attribute from the <form> tag, leaving the honeypot input field in place.
I also added an immediate redirect to a url which take in account my layout where I thanks the user for added a message. If I don’t do this , I have a blank page (normal because no code , only the form code)
@Roozeec The only bit that matters is that you post to a route where Netlify actually handles the POST, in this case your previous dummyform.html was a known .html file that actually exists, which is why my suggestion was the actual solution.
You cannot post to any routes which are handled by redirects or any kind of middleware / “server side generation”.
The various steps that you’ve gone through are icing for your project but they’re either superfluous or “not a great way” of handling it.
Instead of the meta refresh usually people using a framework like astro wouldn’t be directly posting to the form, but rather utilizing ajax and then redirecting directly from their JavaScript.