- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
To change an object on all instances of a masterpage you can use a loop.
Assuming your form has this structure.
form1
(masterpage)
MasterPage
HeadlineA
HeadlineB
...
Page1
...
Page2
...
Then you can loop through the instances with this script.
for (var i = 0; i < xfa.host.numPages; i++)
{
var oHeadline = xfa.resolveNode("form1.#pageSet.MasterPage[" + i + "]");
oHeadline.HeadlineA.presence = "visible";
oHeadline.HeadlineA.presence = "invisible";
}