Skip to content

Commit

Permalink
Add form-name hidden field for Netlify Forms (#24548)
Browse files Browse the repository at this point in the history
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 -> gatsbyjs/gatsby#12040

Co-authored-by: gatsbybot <[email protected]>
  • Loading branch information
gatsbybot and gatsbybot committed Jun 5, 2020
1 parent 16ffdf7 commit e45eac3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2251,12 +2251,7 @@
dependencies:
"@types/node" "*"

"@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":
"@types/node@*", "@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==
Expand Down

0 comments on commit e45eac3

Please sign in to comment.