You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying validate the properties of an object through a form validation schema, but it doesn't work (see my code
below). It works fine if the validation rules are set in useField(), but not when using a form validation schema.
Do I have to use multiple useField to make it work, one for each object property? (useField("t1.id"), useField("t1.text"))
What's the best way to do this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying validate the properties of an object through a form validation schema, but it doesn't work (see my code
below). It works fine if the validation rules are set in useField(), but not when using a form validation schema.
Do I have to use multiple useField to make it work, one for each object property? (useField("t1.id"), useField("t1.text"))
What's the best way to do this?
Thanks for your help.
Code:
Beta Was this translation helpful? Give feedback.
All reactions