I'm trying Ember + Netlify Forms. Will it work? Let's find out.
- added prember and ember-cli-fastboot
- used the version of fastboot that is compat with Ember v4+ (in this case, v3.2.0-beta.5)
- ensured forms were being detected in the Netlify build log:
- added
/successpage- added this to the prember list in
ember-cli-build.js - added this to the
actionattribute value on theformin theindex.hbstemplate file
- added this to the prember list in
- used ember-cli-netlify and added
.netlifyredirectsfile - essential step: Netlify adds a hidden field but fastboot gets in there and regenerates the page, which takes out the hidden field that Netlify added. So add it to the form markup, right inside the
<form>element:<input type='hidden' name='form-name' value='survey-22' aria-label="leave this one alone it is just for netlify" />
It works!!
- ✅ the site loads
- ✅ filling out the form and pressing submit gives a "page not found" error.
- ✅ manually navigating to /success works
- ✅ images on the
/successpage show up