One issue I see @JayStoll is data-netlify-honeypot="bot-field" is in the form element however there appears no element inside the form with the corresponding name bot-field.
The data-netlify-honeypot="bot-field" and data-netlify="true" attributes are also not required on the JavaScript version of the form.
I believe the problem is that my HTML form is not being sent to Netlify at all. I am suspicious that my static folder is not configured properly, and I have not been able to figure out how to configure it so that nuxt uses it.
the other problem that I am having is that I’m also getting a 'No match found for location with path “/favicon.ico” This would point to the same issue. Would you have insight on how to hook up the static folder so that pages in it get used correctly?
Hi, @JayStoll. One of the requirements for the forms handling at Netlify is a pure static HTML version of the form (without server-side rendering or client-side javascript).
I don’t see any HTML files deployed and the main page of the site is using server-side rendering. Do you have a pure HTML version of the form somewhere if you download the deploy? If not, that is the issue and you must create an HTML file with the form to resolve this. However, if you do have an HTML file with the form, please let us know.
You should be able to see the code here. I currently have an /index.html with the dummy form to trigger Netlify. earlier I had this same file in /static/dummy-form. That did not work either.
I believe my problem might be that Nuxt is not using my /static folder properly because the /favicon.ico is also not working and I have not been able to link to any files in the static folder. I don’t know enough about Nuxt to understand how to correct this.
Looking through the .nuxt Directory Structure documentation I suggest the public directory (known as static in Nuxt 2; the project uses Nuxt 3) is the one you want to use. Quote
The public/ directory is directly served at the server root and contains public files that have to keep their names (e.g. robots.txt) or likely won’t change (e.g. favicon.ico).
This is the location you’ll want to put a file that contains the <form> currently in the index.html. The reason—as you can observe by running npm run build and npm run generate locally is Nuxt overwrites the content of index.html removing the <form> and the build system can’t detect what is not there.
So…
Rename static to public
Create form.html in public which contains the static HTML form for the build system to detect
Thank you so much. That fixed both the form and the favicon. Netlify now recognizes the form. It has not yet successfully received any submissions which I have not figured out yet, though.