Is there any hook that is called before handleSubmit? #12159
Unanswered
niralivasoya
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I used the
useFormContext
in my parent component for my complex and nested form project. In one of my nested forms, I need to clear a few fields before submitting the main form from the parent component. However, when I tried to clear these fields, it didn't work at all. I'm wondering if there's anything that needs to be done to clear these fields before form submission.In one of my component, I have used like this
but it is not working, I still get the values of these fields even if my radio value is single. Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions