Next.js Discord

Discord Forum

forms not submitting

Answered
subscr posted this in #help-forum
Open in Discord
hello guys, i'm using shadcn ui forms, and they dont are logging and executing nothing in submit, anybody with same error?
Answered by subscr
the problem was that there was no tag input
View full answer

14 Replies

code:

submit
function onSubmit(input: Partial<z.infer<typeof formSchema>>) {
        console.log("a")
        console.log(input)
    };
Standard Chinchilla
I'm using it right now and haven't had that problem
idk what i can do
I'm clicking on the button, but it won't work, I already have to debug everything, but it's no use
bruh
I think it's something with zod, because I left just the ID and it worked.
Standard Chinchilla
And if you remove the zod schema from useForm, does it work fine?
Standard Chinchilla
nice!
the problem was that there was no tag input
Answer