T
TanStack•10mo ago
absent-sapphire

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
optimistic-gold
optimistic-gold•10mo ago
field has setErrorMap()
No description
optimistic-gold
optimistic-gold•10mo 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
absent-sapphire
absent-sapphireOP•10mo ago
Thanks @nneaowwplane!
optimistic-gold
optimistic-gold•10mo ago
No worries, sorry I didn’t have time to elaborate… but I hope it pointed you in the correct direction.

Did you find this page helpful?