Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Repeatable row disabled by default. Need to enable all rows based on value in XML.

$
0
0

I have a repeatable row in a table that is defaulted to read only.   If a certain value doesn't exist in the XML (populated != x), I want to make add / remove buttons visible and and make the text fields in the row and all subsequent instances Open.

 

when populated !=x:

disabled.JPG

 

 

This is the code:

if (xfa.host.name != "XFAPresentationAgent" && this.resolveNode("populated").rawValue != "x") {

  oTargetField = this.resolveNode("#subform[2].tbl_people.person.name");

      oTargetField.access = "open";

  oTargetField = this.resolveNode("#subform[2].tbl_people.person.relationship");

      oTargetField.access = "open";

  oTargetField = this.resolveNode("#subform[2].tbl_people.person.age");

      oTargetField.access = "open";

}

 

When I use this, it only enables the first row and none of the subsequent rows/instances.  

 

enabled.JPG

 

Any assistance would be greatly appreciated!

 

-Jeff


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>