Skip to content
Discussion options

You must be logged in to vote

use:enhance only works with form actions that are implemented by SvelteKit, since it expects a specific response back from the server.

You'll probably want to implement a custom submit handler that submits the form using AJAX. When JS is not enabled, the default HTML form should still work. With JS enabled, it can use the custom submit handler to submit client-side.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@AutomateAaron
Comment options

Answer selected by AutomateAaron
Comment options

You must be logged in to vote
1 reply
@dummdidumm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants