Next.js Discord

Discord Forum

how to I delete input fields value

Answered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
Answered by Ray
do you mean reset the form after the action?
move the form to client component and create a ref for the form, then call ref.current?.reset() after the action
View full answer

3 Replies

@West African Lion Click to see attachment
do you mean reset the form after the action?
move the form to client component and create a ref for the form, then call ref.current?.reset() after the action
Answer
Labrador Duck
You can make form a client component and can clear it by above method mentioned by Ray
West African LionOP
Okay thanks