Hidden Fields to pass values to the backend / Formsnap #166
Unanswered
eftichis0202
asked this question in
Q&A
Replies: 1 comment
-
this seems more like a svelte than a formsnap question. i believe that in order for the input to update form state (or a local variable or store), its value must either be bound to it, or the on:change cb must be used:
|
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 all,
hope this finds you well. I am trying to figure out how to pass values to the back-end using superforms and formsnap. For some reason i can't get it to work..
For example:
<input
type="hidden" name="companyid" value={$currentCompany.id} />inside the form field, will not add the value to companyid for some reason.
How do i need to do this using form fields.
The schema.ts:
Thanks for your help,
Felix
Beta Was this translation helpful? Give feedback.
All reactions