Next.js Discord

Discord Forum

forms not submitting

Answered
subscr posted this in #help-forum
Open in Discord
Avatar
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

Avatar
code:

submit
function onSubmit(input: Partial<z.infer<typeof formSchema>>) {
        console.log("a")
        console.log(input)
    };
Image
Avatar
Standard Chinchilla
I'm using it right now and haven't had that problem
Avatar
wtf
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.
Image
Avatar
Standard Chinchilla
And if you remove the zod schema from useForm, does it work fine?
Avatar
yeeeess
alright, solved, "tags"
Avatar
Standard Chinchilla
nice!
Avatar
the problem was that there was no tag input
Answer