Skip to content

Resetting form problem in web3uikit #4938

Answered by alymurtazamemon
ritesh798 asked this question in Q&A
Discussion options

You must be logged in to vote

@ritesh798 You need to assign the same variable to the value of the text field. For example, you have a field which gets the age in number and you have a useState hook like this; const [age, setAge] = useState();. Then you need to assign this age variable to the value of the text field which controls that text field. And once you get the result process everything you need to reset it like this setAge(undefined) which reset the value of text field.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

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