1

I´m not being able to pass the parsed date to the submit object of react-hook-form. I need to handle the parsing at the field level because this is a dynamic form so I can´t control which fields the user will use.

I´m using "setValue()", and I can see the value being defined when using "watch()" but when submit it gets undefined. Can´t find what I´m doing wrong.

Here is a reproducible example:

Edit lively-sun-cbnem

Thanks!

Perestrelo
  • 183
  • 1
  • 3
  • 14

0 Answers0