Expand my Community achievements bar.

Edit Button text during runtime (Javascript )

Avatar

Former Community Member
I am able to display the contents of a button's text.. using

xfa.host.messageBox("" +EditButton.caption.value.text.value);

however if I try to change that value, it does not change. Is there a different property to modify to change the value of the text on a button during runtime?
1 Reply

Avatar

Former Community Member
Hello Andrew,



In JavaScript, try this:



b On Click Event.

> xfa.resolveNode("this.caption.value.#text").value = "New Text";



It should work...

Dan