redirect: 'manual' to avoid following the Formbase redirect in the browser.
1
Create your form UI
Build the form as usual and give each input a
name attribute.2
Submit to Formbase
- Basic submission
- File upload
FormData API serializes the form exactly like a normal browser post.Browser submissions return a
303 redirect. Treat that as success in client-side code, or post from your server for a JSON response.