menu

React Hook Form

馃搵 Custom React hooks for form validation without the hassle

Channels
Team
Posts
Members
Info

Any idea about bulk add/remove for array fields?

thumbsup
0
message-simple
1

Thanks to community member: github0013!

What makes a great community: is when everyone helps each other. In the past few weeks, @github0013 have helped many questions, people, issues at spectrum. I would like to thanks him personally <3. We should all help each other if we can. You may learn new thing during helping鈥

thumbsup
9
message-simple
0

Form builder code

Is there any chance we can get our hands on the form builder generator code? I'm looking for a solution that lets us create a form by providing a component with a schema and some parameters to work with, similar to the form builder.

thumbsup
0
message-simple
7

useFieldArray (馃 New feature) BETA

Here is the beta version you can have a play around with 4.5.0-beta.2 you can refer to the following example: https://github.com/react-hook-form/react-hook-form/pull/768/files#diff-9ee16720d5f6609139aa0599f12991e1

thumbsup
3
message-simple
29

New DeepPartial for defaultValues is causing issues with reset

I have a function in my Form component that resets the form to defaultValues: With the update to v4.4.3, defaultValues is now typed as a DeepPartial, but reset's argument is still typed as Partial. This fails a type check for my component.

thumbsup
1
message-simple
22

Have an issue with validationSchema and manual register input

Setting validationSchema inside component causes register maximum deps error.

thumbsup
1
message-simple
10

Should setError prevent form submission?

Hi, first things first: Thank you for this awesome library. so... i was trying to create a form which has a radio group that would decide which input should be required,so i used watch and setError to achieve that but i noticed that the form gets submitted even when the errors鈥

thumbsup
1
message-simple
9

Plans for react-native compatible package?

I was looking for an alternative to formik for react-native. I thought this would be it. But it doesn't appear compatible at this point. Anyone know if someone is looking to port it?

thumbsup
0
message-simple
38

Is it possible to unset a field?

I want to completely remove a field if no values are provided. How can this be done? I have the following example: https://codesandbox.io/s/inventory-search-1f9y1 If operator is not defined (src/elements/CompareableInput/component.tsx), I want it to unset name on the current鈥

thumbsup
0
message-simple
12

Happy new year everyone 2020 鉂わ笍

It's an amazing year for RHF in 2019, we will keep improving and release better features in 2020 and help more devs around the world.

thumbsup
11
message-simple
0