How to correctly handle related/ linked/ dependent or conditional fields? #621
-
In my form I have a checkbox which when checked copies over a value from an input field to another textarea and disables this textarea. Alternatively, if the checkbox is not checked I want the user to be able to fill in all those form fields on his own. So basically I have form fields which have dependencies to each other and I need to set other form fields in the I haven't really found any documentation on this but after some fiddling around I found some solutions, some of which are obviously hacks but one seems to be a reasonable way to do things. This way involves Sample using
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is now an official feature here: https://tanstack.com/form/latest/docs/framework/react/guides/linked-fields |
Beta Was this translation helpful? Give feedback.
This is now an official feature here:
https://tanstack.com/form/latest/docs/framework/react/guides/linked-fields