Form does not post when clicking Form.Button element #1498
Replies: 1 comment
-
It's my fault, my form schema is expecting some values that I forgot to pass through a hidden field. |
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
-
I have a page where I am using the Tabs component to switch between two types of forms.
I reused most of the code from the Forms component docs and the forms example.
The main difference is that I am trying to put two forms in my form component.
The issue is that when I press the Form.Button the form does not submit (I added a console.log in the corresponding action in
+page.server.ts
and there is no output), I checked the client network tab and no POST request is sent.I noticed that if I remove
use:familyEnhance
the form goes through to the server and my console log runs in the corresponding action.Is there something wrong with my code? If I am approaching this the wrong way, what would be a better solution?
invite-form.svelte
+page.svelte
+page.server.ts
Beta Was this translation helpful? Give feedback.
All reactions