How can I submit a form that exist in a step wizard?
I have a submit button to go to next step living 3 levels up from the RHF form, which dispatches a function(validateStep1) to validate two forms one is the RHF form the other is an externally imported unrelated form. I need to submit the RHF form, then validate here if it is…
Possible bug with field arrays ending up in an empty object
I am trying to work the new useFieldArray into my code, but running into a problem with properly maintaining the array of objects. Here is a simple sandbox to show the issue I am seeing: https://codesandbox.io/s/react-hook-form-usefieldarray-f0v7b …
How to find out which submit button has been clicked onSubmit?
Right now my team is discovering on how to find out which submit button has been clicked (when there are multiple submit buttons). F.e. if you have an invitation form, where you can either submit your party acception or your party declining (acceptButton has value="accept",…
Is this stackoverflow answer from @bluebill1049 on controlling ant-design up to…
Is this advice still operative? https://stackoverflow.com/questions/58833574/how-to-use-react-hook-form-with-ant-design-or-material-ui It seems like using the new <Controller /> component is the operative advice.
useFieldArray Isn't Deleting Correct Index
I am still seeing issues in my implementation for useFieldArray in my code. As a result I have been trying to make a codesandox that I created resemble my code more closely: https://codesandbox.io/s/react-hook-form-usefieldarray-modular-robsu In this example: 1) Click Add …
What am I missing?
Hey, I'm testing out react-hook-form, but I can't seem to get the values to update with a deep nested component, useFormContext and Controller-component from APIs. Selecting values form the React-Select component inside my deeply nested component sets the values with setValue…
useFieldArray and getValues
Starting here instead of submitting an issue or question on the repo. I think there may still be some issues with useFieldArray. https://codesandbox.io/s/react-hook-form-usefieldarray-wx2s7 That sandbox is there to illustrate an issue that I see in the app that I am working on.…