useFormState reset formstate
Unanswered
British Shorthair posted this in #help-forum
British ShorthairOP
I have a form build with useFormState, this form is currently inserting new data records. I want to use the same form for an edit functionality, so when I click on a edit button, I want the form to be prefilled with the data.
However, I dont seem to be able to change the formState or values from the input. Does anyone know how I can fix this?
However, I dont seem to be able to change the formState or values from the input. Does anyone know how I can fix this?