survey-netlify
I'm trying Ember + Netlify Forms. Will it work? Let's find out.
Steps so far
- 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
/success
page- added this to the prember list in
ember-cli-build.js
- added this to the
action
attribute value on theform
in theindex.hbs
template file
- added this to the prember list in
- used ember-cli-netlify and added
.netlifyredirects
file - 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" />
Current Status
It works!!