


How do I refer to all instances of a repeating subform? I am trying to protect a section of my form with a click of a button. The section can be repeated. It will protect the first instance, or I can specify an instance ([1], for example), but I don't know how to say "ALL" instances. I made a really simple example.
xfa.resolveNode("Page1.row[1]").txtFirstName.access = "protected";
Views
Replies
Sign in to like this content
Total Likes
Hi,
Try this;
var rows = xfa.resolveNodes("Page1.row[*]");
for (var i = 0; i < rows.length; i++)
{
var r = rows.item(i);
r.txtFirstName.access = "protected";
// ...
}
Note the resolveNode has to be resolveNodes ... plural
Bruce
Views
Replies
Sign in to like this content
Total Likes