colossal-harlequinC
Refine2y ago
4 replies
colossal-harlequin

Headless useForm and input validation

I'm using the headless version of useForm as described here https://refine.dev/docs/data/hooks/use-form/ to make refine work with tailwind/daisyui. Works great, but what's a recommended approach to extend the provided example by form validation? To check that an input is a valid email and such. Preferably using zod, but not required.
A hook that orchestrates Refine's data hooks to create, edit, and clone data. It also provides a set of features to make it easier for users to implement their real world needs and handle edge cases such as redirects, invalidation, auto-save and more.
useForm | Refine
Was this page helpful?