Avatar

Level 10

Each field in the subform has a unique somExpression to describe it. You will have to address the field by it complete expression. You can get this by adding a line of script to the enter event of the dropdown.

app.alert(this.somExpression)

Add a couple of those subforms and then access the dropdown. An alert with the somExpression for that field will appear. Note that the names are the same but you will see occurance numbers on the repeating subform. These must be incorporated into your commands to affect the right fields.

To get the instance of the subform that you are on you can use:

this.parent.index

So modify your commands toi look like this:

xfa.resolveNode("service-configuration.mainSubForm.payment-component.component[" + this.parent.index + "]").value_sub.presence

= "visible";

Paul