0
votes

I have some checkboxes like objective0 and objective3 as checked, they have text field Now I need to add,remove textfield as well as update their values

{    
   "ObjArr":[ //array for Checkbox
       {"key":"objective0", value:true},
       {"key":"objective1", value:false},
               {"key":"objective3", value:false}
   ],
   
   "outComes":[
       {
           "ObjID": "33s145342",
           "objective0": [//Checkbox key
               {
                   "name": "hi",//text field
                   "oppOutComeID": "bda1da3a"
               },
               
           ]
       },
               {
           "ObjID": "33145d342",
           "objective3": [//Checkbox key
               {
                   "name": "hi",//text field
                   "oppOutComeID": "bda1da3a"
               },
               
           ]
       },
       
   ]
   
}