Hi Everyone,
So I’m in the process of revamping my portfolio site with Gataby, however, I’m having a small problem getting the form functionality work.
To get the form working on netfliy I have followed the basic setup this inlcudes:
- Adding a name attribute to the form
- Adding the POST method to the form
- Adding data-netlify=‘true’ to the form tag
- Adding data-netlify-honeypot=‘bot-field’ to the form tag
To submit the form I’m not using the traditional netlify approach Im using the AJAX approach. It seem’s straight forward, but when I come to submit the data to Netlfiy I’m getting a 404 response which is weird as you need to set the AJAX endpoint to be ‘/’ which I have yet it’s saying it doesn’t exist. I’m really confused, not sure why it’s not working.
If someone is avaliable to assist it would be greatly appreciated.
Screenshot for reference:
Links:
Site: https://zealous-lumiere-32d4c6.netlify.app/ (Work In Progress)
Github: https://github.com/AlexMachin1997/Portfolio-Netlify-/tree/feature/gatsby-rewrite