You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have switched my implementation of a basic form to the Shadcn-svelte form in order to utilize <Form.Checkbox />. However, my form is a search where I wish to perform a GET with URLSearchParams.
The form works as intended but in general the browser complains because use:enhance can only be used on form fields with method of POST.
What is the recommended way to both use the Shadcn-svelte form and checkbox while also adhering to Svelte's enhance constraints? I know that Superforms allows URLSearchParams in the data param for superValidate.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have switched my implementation of a basic form to the Shadcn-svelte form in order to utilize
<Form.Checkbox />
. However, my form is a search where I wish to perform a GET with URLSearchParams.The form works as intended but in general the browser complains because use:enhance can only be used on form fields with method of POST.
What is the recommended way to both use the Shadcn-svelte form and checkbox while also adhering to Svelte's enhance constraints? I know that Superforms allows URLSearchParams in the data param for superValidate.
Converted from:
To:
Beta Was this translation helpful? Give feedback.
All reactions