I am having a bit of a trouble trying to watch a dynamic array checkbox
I have no trouble watching a single checkbox state changes as below:
const useCheckboxWatch = watch('Checkbox1');
where Checkbox1 is the name given to the Checkbox.
I am trying to determine if a given textfield should be read only based on if the given checkbox is checked…
However, with dynamic array fields, I am not sure how I should write this since it will not be possible to write Checkbox[0], Checkbox[1], etc… as the array length is not fixed…
Any help is appreciated…