Hi,
I'd like to know whether there is any way to control e.g. the visibility of an element (such as a button or a text field) placed on a masterpage by clicking a button that is placed on a normal page (the one you can see in the design view)? How should I refer (from a normal page) to the elements placed on the masterpages? xfa.form.data.MasterPage1... doesn't seem to work the way that I'd like it to.
Any help will be greatly appreciated
Regards
T.M.
But this doesn't mean that it can't be done. In LiveCycle Designer, display your master page. Select the field you are interested, or add the field to the master page. Then open up the Scripting window and select an event. The SOM path for the element will appear at the top of the script.
This is the path you need to use to access the element. Notice that it's down the "data" path in the "form" model. The funky looking "#pageSet[0]" name is the MasterPages node. On the hierarch window, select "Master Pages". Right click and select rename. To rename MasterPages to something else. As soon as you do this you'll see the name change in the elements SOM Path. Now you have a SOM path that can be used in JavaScript.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script