Skip to content
Discussion options

You must be logged in to vote

Method 1:
@kiwiinlondon you may want to use the reset() function from useform() on mount and set your values as you want. This way you have full control over the values you set to the form.
Here is the snippet on how you can do it.

Working CodeSandBox here.

Method 2:
you can use setValue() function the similar way but its for the single value use setValue("name","value").

I would prefer you the 1st method. Hoping that it would help you.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@tan00001
Comment options

@RobJJ
Comment options

Answer selected by kiwiinlondon
Comment options

You must be logged in to vote
2 replies
@fahadsohail482
Comment options

@tan00001
Comment options

Comment options

You must be logged in to vote
1 reply
@fahadsohail482
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants