Equivalent to setError?
Hi. I am using
react-hook-form
now, and my foel has recaptcha. I am keeping track of recaptcha in the form state, like any other input. I was using setValue()
to set the value in the form state after the widget has been clicked and setError()
when the server was returning an error related to recatpcha. Using TanStack Form, I replaced setValue()
with setFieldValue()
but I do not know how to replace setError()
. Any tips? tahnk you 🙂4 Replies
eager-peach•7mo ago
field has setErrorMap()

eager-peach•7mo ago
you'll have to take a look at the error map in the code, but you can set whatever you want in the errors now as of 0.43
correct-apricotOP•7mo ago
Thanks @nneaowwplane!
eager-peach•7mo ago
No worries, sorry I didn’t have time to elaborate… but I hope it pointed you in the correct direction.