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

Change caption without data source binding?

wisi
Registered: Dec 18 2008
Posts: 9
Answered

Hi,
is there a way to change the caption of a button using javascript and without binding to a data source?

Thanks

wisi

My Product Information:
LiveCycle Designer, Windows
formman
Registered: Jul 17 2008
Posts: 44
Yes there is a way.

To change the button caption you would use the following code in JavaScript to change the caption:

ButtonName.resolveNode("caption.value.#text").value = "NewCaptionText";

Rick Kuhlmann

Forms Developer/Designer
Tech-Pro, Inc.
Roseville, MN

wisi
Registered: Dec 18 2008
Posts: 9
Nice - it works!
Thank you