Expand my Community achievements bar.

Unable to access multiple instance objects in HTML

Avatar

Level 2

Good afternoon,

I have a button setup to add a subform instance when clicked. I have another button inside that subform that displays a hidden text with a button toggle.

The code I'm using to add an instance is: this.resolveNode('Subform1._Subform2').addInstance(1);

The code that is working for the PDF view to display hidden text is:

if(txtPlanKey.presence == "visible"){

          txtPlanKey.presence = "hidden";

}else{

          txtPlanKey.presence = "visible";

}

The issue seems to be when I add a new instance the logic does not carry over to the newly created subform.

Is this even possible for the HTML view? If so I could really use some help. Thank you!

james

0 Replies