moderate-tomatoM
Refine2y ago
11 replies
moderate-tomato

Is there a way of transforming what is sent by useForm?

I want to use the useForm hook but I want to transform the values it sends to the backend, I can't seem to see anything in the documentation but just asking here to confirm if I've missed something obvious. To give an example, lets say I have a form which accepts a title and description. Before this gets sent to the backend I would like to do some pre-processing on the 'title' parameter without it reflecting in the form. Is there a way of achieving this?
Was this page helpful?