follow-on question on dynamically updating fields
Confluence User - 13 Nov, 2017
Hey All,
I have a form with a sub form. I need to;
- read in the values of check boxes and radio buttons from both the form and subform,
- apply some logic, and
- update other check boxes on the subform.
I can read in checkbox and radio values if they are on the parent form,
$("input[type=checkbox][name=myCheckbox]:checked").val(); $("input[type=radio][name=myRadio]:checked").val();And I can read in textboxes if they are on the parent form or sub-from,
$(FormUtil.getField("subInput")).val();But I can’t seem to read in the values of checkboxes or radio buttons if they are on the subform. I’ve tried everything I can think of, e.g.
$(FormUtil.getField("input[type=radio][name=subRadio]:checked")).val();Any help would be greatly appreciated.
javascript;forms