correct-apricot
correct-apricot3y ago

form field validation

Hello I have this schema Item has id , name , and type The case is The user should select one type to display the left fields , but the problem is if the user does not select any type and press create btn , it creates the record even i set name as required field , so is there any method checks the required field Sorry for my english
6 Replies
conscious-sapphire
conscious-sapphire3y ago
Hey @saji can you share a code sample with your form?
correct-apricot
correct-apricotOP3y ago
Ok , I will do it when I turn on my laptop Thanks in advance
conscious-sapphire
conscious-sapphire3y ago
Thank you 🙏
correct-apricot
correct-apricotOP3y ago
One more question Should i use formik with forms?
conscious-sapphire
conscious-sapphire3y ago
refine has a package for React hook forms; @pankod/refine-react-hook-forms, if you want you can use formik too with using useForm from @pankod/refine-core to handle the refine integration 🚀
correct-apricot
correct-apricotOP3y ago
Thanks alot

Did you find this page helpful?