Tried to setup a form inside a JSX React app. Followed closely the instructions on the knowledge posts, but the form does not send anything - at least not from the Preview deploy site. Any advice?
PLEASE help us help you by writing a good post!
we need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
Build problems? Link or paste the FULL build log & build settings screenshot
as instructed in the Netlify post I added this to my the public html
<!-- form for Netlify deploy -->
<!-- A little help for the Netlify post-processing bots -->
<form name="feedbackForm" netlify netlify-honeypot="bot-field" hidden>
<input type="text" name="name" />
<input type="email" name="email" />
<select name="subject" />
<input type="text" name="browserInfo" />
<textarea name="messageText"></textarea>
</form>
<!--end form for Netlify-->
Sorry but I can’t seem to find the form on the page I see the Select Data Source input area where I can drag and drop files, but I don’t see input fields for name, email, subject, browserInfo. Very sorry if I missed something obvious!
hey @audrey - thanks - try refreshing the page and clicking on it again. I am noticing on deploy that sometimes, the form functionality isn’t loading up first time. Its not a pop-up, so it shouldn’t be blocked…
Also the app is only really going to work properly with MIDI on Chrome, because Firefox doesn’t have WebMIDI support
thanks for the feedback, noted… of course i’d LOVE to be able to receive your feedback through the Netlify form integration , which doesn’t work even though I have carefully followed the rather hacky workaround at How to Integrate Netlify’s Form Handling in a React App
So I can confirm the code works. If you would like to share the repository you are deploying from, I am sure someone will happily assist you in debugging your code.
Ok, I see that your code there seems pretty much the same but you don’t have the hidden field hack from that support article.
If anyone can help, that would be great. I inherited the code base, and I am not a React Developer either… it has been a tonne of work to get to this stage, but here are some pointers into the codebase where the Form integrations are supposed to happen
Here is the component that renders the form dialog.
Ok so what you seem to be suggesting is that the html placeholder Form need to have EXACTLY the same structure as the Javascript /JSX rendered form we are actually trying to get data from?