Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unable to access multiple instance objects in HTML

jashachik
Level 2
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