You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
My default values are {
Name:'abc',
lastName:'smthing',
department:{
checked:false,
id:''
}
}
I want UI where I need table with chekbox and id as row, which will dynamically gets added on clicking on add button and when particular checkbox is clicked we can delete selected checkbox.
I am planning to use useFieldArray here: const {fields,contorl}=useFieldArray({
fields:"group",
control
})
But I am not getting how I can use common Controller for both of them , at the end I want to store the values in form like {checked:true/false,id:''}
Can some one help me with some code snippet/suggestion
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
hi
My default values are {
Name:'abc',
lastName:'smthing',
department:{
checked:false,
id:''
}
}
I want UI where I need table with chekbox and id as row, which will dynamically gets added on clicking on add button and when particular checkbox is clicked we can delete selected checkbox.
I am planning to use useFieldArray here: const {fields,contorl}=useFieldArray({
fields:"group",
control
})
But I am not getting how I can use common Controller for both of them , at the end I want to store the values in form like {checked:true/false,id:''}
Can some one help me with some code snippet/suggestion
Beta Was this translation helpful? Give feedback.
All reactions