Replies: 1 comment
-
I know it's an old question, but in such cases you can use a hidden input, making sure it has a proper For instance: <input type="hidden" name="answer" value={$formData.answer} /> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to include a toggle group (type = single) inside the form components offered by shadcn-svelte. With the following code, I can see the selected toggle gets updated within the SuperDebug component.
However, when I console log the received form data on the
page.server.ts
side, theform.data.answer
is an empty string. I am able to get the other components, such as input, radio group, and textarea, working inside the form. I would really appreciate any pointers or examples to get the toggle group working as well. Thank you!Beta Was this translation helpful? Give feedback.
All reactions