Answered
How does one change a button text
I was trying the following but it does not always work.
this.caption.value.text.value = "Hide Inst.";
I am using LC ES2 and JS
How does one change a button text
I was trying the following but it does not always work.
this.caption.value.text.value = "Hide Inst.";
I am using LC ES2 and JS
if(xfa.form.Form1.Page2.presence == "hidden"){xfa.form.Formular1.Page2.presence = "visible";this.caption.value.text.value = "hide Page 2";}else{xfa.form.Form1.Page2.presence = "hidden";this.caption.value.text.value = "show Page 2";}
if(xfa.form.Form1.Page2.presence == "hidden"){this.caption.value.text.value = "Show";}else{this.caption.value.text.value = "Hide";}
What event do you use to execute the script?
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs