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

Can't change a caption

aclawson
Registered: Dec 19 2010
Posts: 2

I have a drop down list with possible values of "A" "B" and "C".
 
I have a checkbox named chkWhatever
 
I have a javascript change event that reads as follows:
  
form1.#subform[0].MyDropdown::change - (JavaScript, client)
 
if(xfa.event.newText == "A")
{
chkWhatever.caption.value.text.value = "A";
}
  
Eventually I want it to use some else statements but at the moment I'll be extremely happy if it works even for that one case.
 
I have also tried
 
form1.resolveNode("chkWhatever.caption.value.#text").value = "A";
 
But that didn't work either.
 
I get no error messages, it simply doesn't do anything.

My Product Information:
LiveCycle Designer, Windows
Bamboolian
Registered: Jul 27 2010
Posts: 48
Hi,

try
chkWhatever.resolveNode("caption.value.#text").value 
aclawson
Registered: Dec 19 2010
Posts: 2
That didn't work either.


Bamboolian
Registered: Jul 27 2010
Posts: 48
Hi,

Wierd, it works in my LCD.
Have you checked the setting of the form?

File -> Form property -> Preview -> Interactive form
Save as -> Dynamic PDF form
form1.resolveNode("chkWhatever.caption.value.#text").value = "A";

This one also worked, so it might be other setting.