Setting dynamic values in nested object using react-hook-form
Unanswered
American black bear posted this in #help-forum
American black bearOP
I have fields that dynamically generate based on templated data
These are represented with checkboxes.
Once ticked, i need their id to be added to the react hook form data under an object
something like:
I'm struggling to find how I can append this data to the array, as well as remove when unticked
These are represented with checkboxes.
Once ticked, i need their id to be added to the react hook form data under an object
something like:
{
optionalFeatures:[
1, 4, 6, 1
]
}I'm struggling to find how I can append this data to the array, as well as remove when unticked