One of the scripts in my document (not on the master page) will change all of the text boxes from English to French. The Master Page holds a header. When the translate script fires I would like for the header to be translated as well. To make that happen I run:
form1.resolveNode("#pageSet[0].Header.Title1.value.#text").value = "MY TEXT";
There are two problems:
1) Only the header on the first page changes. As per Thom Parker, I see that I will need to reference that header on each of my pages; however, he did not provide an example of how to do it. So, how do I do it?
2) My script will run and the header (on page 1) will change. However, as soon as I select one of the radio buttons on page 1, the header reverts to the state that the file opened in. Selecting a radio button on a different page will not affect anything. How can I get the changed title to stick?
Thanks,
~ Nick ~
In this example there are two subforms called "English" and "French" on the masterpage.
The SOM path on the masterpage for example is "xfa.resolveNode("Form1.#pageSet.1.English" and/or "xfa.resolveNode("Form1.#pageSet.1.French".
With a script like this on a buttons click event, you can control the visibility of the subforms in the whole form.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs