Avatar

Level 3

I need to loop thru my instances and toggle visible/hidden if a particular radio button in each instance is selected.

My code right now does not work but I feel I am on the right track (minus the else statement it will need to toggle on/off).

Can anyone help? thanks in advance!

var rowCount = BugGroup_f.instanceManager.count;

for (i=0; i<rowCount; i++) {


var str = xfa.resolveNode("BugGroup_f.detail3.bugInfo.BugItem.status.RadioButtonList[" + i + "]").rawValue;

    if (str.indexOf("Fixed") > -1) {
    xfa.resolveNode("BugGroup_f["+rowCount+"]").presence = "hidden"

    }
}