RHF watch functionality? #289
-
I am trying update a forms values dynamically based on a user interacting with another part of the UI, I believe this would typically be handled with RHF's watch functionality (could be wrong still learning) but I am not seeing anything in the docs for this. Is this supported? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I was able to "update" my form's values using a simple |
Beta Was this translation helpful? Give feedback.
-
Hey, @JWTappert! I'm glad you found a workaround, but maybe using |
Beta Was this translation helpful? Give feedback.
Hey, @JWTappert! I'm glad you found a workaround, but maybe using
watch
+setValue
would be better. They are both accessible from theSchemaForm
's children, like all other keys fromuseForm
's return value. This example uses them: https://remix-forms.seasoned.cc/examples/schemas/array-of-strings