destack
destack copied to clipboard
How to submit form?
Hey there,
Amazing project, thanks for all the great work!
Just wanted to ask how to submit the form? I am running the destack starter repo locally.
I have
- added a component with a form
- made a file pages/api/submit.js
- selected the form and changed the component settings to:
- Method: POST
- Action: /api/submit
- Async: ON (checked)
- selected the Button and set it to SUBMIT.
Hi @apugoneappu,
Glad you liked Destack. Through your issue I realised I missed a bit of config in pages/api/submit.js
To get the form submission to work head back to pages/api/submit.js to find the corrected api route.