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;

  1. read in the values of check boxes and radio buttons from both the form and subform, 
  2. apply some logic, and
  3. 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

1


14 Nov, 2017
confluenceUser
confluenceUser

Hi, there is a pretty similar q&a you can try at Accessing field value from form that is used in Subform Repeater 

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print