Some fields depend on the values of others (e.g., disabling a field unless another is selected). There are two options:
- Introduce a mechanism for defining dependencies inside the schema.
- Use
useFormState and buildFormElements and process the conditional data between them.
Any feedback would be appreciated.
Some fields depend on the values of others (e.g., disabling a field unless another is selected). There are two options:
useFormStateandbuildFormElementsand process the conditional data between them.Any feedback would be appreciated.