Toggable Items within a form #12902
Unanswered
james-portelli-cko
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @bluebill1049,
I have this use case were we have a set of 'predefined' options we would like the user to toggle on/off in a form and then once they toggle it on provide all the necessary information needed.
The only way I could think to do this was by using useFieldArray, but I couldn't find a clean way of implementing this while sticking to the 'documented' approach of using useFieldArray. The final solution I ended up implementing feels very hacky, and Im sure will cause issues and so I'm wondering if you know of a better way to achieve this design.
https://codesandbox.io/p/sandbox/9v3894
Beta Was this translation helpful? Give feedback.
All reactions