react-netlify-form | React component to make using Netlify | Frontend Framework library
kandi X-RAY | react-netlify-form Summary
kandi X-RAY | react-netlify-form Summary
A React component to make using Netlify & React forms easier.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-netlify-form
react-netlify-form Key Features
react-netlify-form Examples and Code Snippets
Community Discussions
Trending Discussions on react-netlify-form
QUESTION
I have a create-react-app application deployed to Netlify, and I'm using react-netlify-form to render my form. My form is registered in my Netlify dashboard, and when I make a submission, I get the success response, but no submissions show up in my Netlify dashboard.
Initially I tried creating a form using the netlify form with react guide. It registered in the Netlify dashboard, but submissions would not show up. (I made sure to use the static form in my index.html file, and the hidden input field with the form name in the react form.)
Then I tried using the react-netlify-form package, and I'm still having the same issue, even when a submission returns a success status.
When I look at the XHR request I see a response code of 200:
In my index.html file I have my static form for Netlify:
...ANSWER
Answered 2019-Feb-20 at 09:04I figured out a fix for this in case anyone else runs into a similar issue. It turns out the 'content-type' header needs to be 'application/x-www-form-urlencoded'. I ended up scrapping the react-netlify-form package and using this component which works for me.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-netlify-form
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page