Expand my Community achievements bar.

Changing button caption dynamically

Avatar

Level 2

Is it possible in Designer ES 2 to change the caption of the button, at the click of another button.

4 Replies

Avatar

Former Community Member

ButtonName.caption.value.text.value =

"test"

Paul

Avatar

Level 2

Hey Paul,

I found the answer after posting this.

i think you have a typo there , shouldn't it be

ButtonName.caption.value.text = "test";

Avatar

Former Community Member

Thank you for posting this and I wonder if you might help break down the construct for this so I can get my head around it. I have a button that I'd like to change the text on dynamically, or in this case, based on a particular checkbox being clicked within the form. I see that the click event is available to me for the checkbox so I get that part. In the example you gave here, am I to replace "ButtonName" with the actual name of the button I want to change the text on?Like so: MyButton.caption.value.text.value = "New Text"; ?

or

topmostSubform.Page3.applicant_signature_confirm::click - (JavaScript, client)
Button1.Save.caption.value.text = "New Tex";

TIA Bob