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: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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:
<inputtype="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
All reactions