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

Changing a button's caption or label programatically

StevenD
Registered: Oct 6 2006
Posts: 368
Answered

There must be a way to change the caption or title of a button via JavaScript in LiveCycle designer. I just can't find anything to give me a clue as to how to do that. Can anyone shed some light as to how to do this?

Example:
A button that toggles back and forth to say "Hide" or "Show".

StevenD

My Product Information:
LiveCycle Designer, Windows
jonom
Registered: Jan 31 2008
Posts: 133
This code sample will switch between the two captions:

if (this.resolveNode("caption.value.#text").value == "Show"){this.resolveNode("caption.value.#text").value = "Hide";}else if (this.resolveNode("caption.value.#text").value == "Hide"){this.resolveNode("caption.value.#text").value = "Show";}
StevenD
Registered: Oct 6 2006
Posts: 368
That is it. I couldn't find anything in the LiveCycle Designer Help to get me anywhere. Thanks a bunch for getting me this.

StevenD