← Data & Forms

Form actions

Handle form posts without client JavaScript.

Export an actions object from +page.server.js and point a normal HTML form at it with method="post".

The form works even with JavaScript disabled. Add use:enhance and SvelteKit upgrades it to a smooth no-reload submit.