-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After submit the validation data is empty #424
Comments
Check the FAQ, first question: https://superforms.rocks/faq |
Thanks, that work! another question, I have to change my schema for the enums |
Check if this works: https://superforms.rocks/default-values#enums-and-group-inputs |
Thanks again, but it works kind of. Because now the form is submit anyway if the Select is empty which is the default from the enum. Is there any way to change that behavior? |
Client-side validation perhaps, take a look at the website, most common scenarios are to be found there. https://superforms.rocks/concepts/client-validation |
Hello, I post this in a different issue, but since it was closed I am going to create a different issue. I am creating a simple form. I am validating my schema using zod. However, when I submit I noticed that my form is invalid. I tried to console the form object and I got the form invalid with empty values on my form.
Here is my schema:
Here is my +page.server
And this the page
So basically I was expecting the page doing a post and had its valid property as true. But what I got is an invalid object. Literally empty. At this time my form does not have an action because I am testing superform, but I did create a fake action in the form but that did not work either. What am I doing wrong?
The text was updated successfully, but these errors were encountered: