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
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, the form.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!
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
-
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