Hello,
I have a Gatsby site deployed to Netlify at op-porfolio.netlify.app
, and I can’t seem to get form submissions in my dashboard.
My site was previously build with Stencil.JS and everything was working fine.
After migrating to Gatsby the form stopped working.
I have set everything up according to the docs:
- I’m using Gatsby so I don’t need a separate HTML form other than my JSX form (I can see the
form
tag when viewing the page source). - I have the
data-netlify
tag, formname
attribute and the hidden input:<form name="contact" data-netlify="true" data-netlify-honeypot="bot-field"> <input type="hidden" name="form-name" value="contact" /> ... </form>
- I have the
form-name
parameter in my post request, and all parameters match the input names:body: encode({ 'form-name': 'contact', name: name.value, email: email.value, message: message.value, })
When I deploy my site to Netlify I don’t see the form detected message with fields names in the logs (as I saw when building with Stencil).
When submitting the form (using JS) I get a 200
response, but in my dashboard I see empty submissions:
I suspect that the only reason I’m even seeing the form listed is because it worked before when I deployed the Stencil.JS build.
The submissions made through the Stencil build, which were fine before, are now also blank (see the last one in the above image).
Any help will be greatly appreciated
Please let me know if I can provide any more info
Thanks!