Add form-name hidden field for Netlify Forms (#24548)

It appears that Gatsby strips the form name from the form submission. By adding the hidden field you can restore the name and don't run into submission issues.
Example code from -> https://codebushi.com/form-handling-gatsby-netlify/
Other have run into this issue at -> https://github.com/gatsbyjs/gatsby/issues/12040

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
This commit is contained in:
GatsbyJS Bot
2020-06-05 00:11:04 +00:00
co-authored by gatsbybot
parent f2841bc81a
commit 70028eb9f3
+6 -1
View File
@@ -1898,7 +1898,12 @@
dependencies:
"@types/node" "*"
"@types/node@*", "@types/node@^8.5.7":
"@types/node@*":
version "14.0.6"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.6.tgz#f9e178b2da31a4b0ec60b64649e244c31ce18daf"
integrity sha512-FbNmu4F67d3oZMWBV6Y4MaPER+0EpE9eIYf2yaHhCWovc1dlXCZkqGX4NLHfVVr6umt20TNBdRzrNJIzIKfdbw==
"@types/node@^8.5.7":
version "8.10.61"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.61.tgz#d299136ce54bcaf1abaa4a487f9e4bedf6b0d393"
integrity sha512-l+zSbvT8TPRaCxL1l9cwHCb0tSqGAGcjPJFItGGYat5oCTiq1uQQKYg5m7AF1mgnEBzFXGLJ2LRmNjtreRX76Q==