Rendering conditionally depending if the form field is optional
I am using shadcn
, zod
, react-hook-form
to render a form, some fields are optional and some are mandatory so they do not have the .optional()
attribute.
Typing error when receiving a property of type Date and returning it to the API in type string
I currently have a service listing screen in reactjs that renders two modals with different triggers. I had asked a previous question here on the platform, but someone else helped me solve it. You can take a look at this link: [/questions/78425045/modal-doesnt-close-on-submission/78425265?noredirect=1#comment138283654_78425265]
Shadcn/ui Tooltip around Button causes form validation
I’m using the Form component from Shadcn/ui to create a form which also uses react-hook-form and zod. In this form I have a button called Button 1
which has a Shadcn/ui Tooltip. Here’s the code:
Correct Way of Adding Error Border in Shadcn Input
Where is the correct/proper way of adding a red border on the input if it has an error?
Creatable Fields with React Hook Form and Zod (and Shad UI)
In my form, I would like the user to have the ability to add an undetermined number of users from other platforms (in this case, the other platforms are Go (board game) servers):