These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Modify a static text element on the master page

shangxiao
Registered: Jun 1 2008
Posts: 25

I now know how to modify a static text element using Javascript.

But now I have another problem: Modifying a static text element on a master page. I found that only the instance on the first page gets changed and the rest remain unchanged.

Does anybody know what's happening here?

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Each instance of a LiveCycle form element is an idividual element. Form fields with the same name can be connected by setting the binding to Global, but binding is not available to static elements. So, the script has to change all instances individually.


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
I actually can't imagine what this would be useful for?
A static text should not be edited, because it's "static" (in my mind).
If there is a need to change text, use a textfield or a static text combined with a text field in flowtext to edit it when needed.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

shangxiao
Registered: Jun 1 2008
Posts: 25
Hi Thomp,

Thank you for you reply! Do you know how to access all of the instances of the static element? I've tried form1.master.Page1[i] but that gives me errors.
stalaa
Registered: Mar 10 2009
Posts: 1
shangxiao wrote:
I now know how to modify a static text element using Javascript.
Could you please tell me how you do this.