Hi Paul,
Thank you for your reply. I still can't get this to work. The form is saved as XML (.xdp), so I think this is dynamic (form has several other dynamic interactive features).
The JS I am using in the DropDown List Box's change event is:
var sNewValue = this.boundItem(xfa.event.newText)
TextField1.rawValue = sNewValue
if (sNewValue == "coronary artery disease, early onset: (male) <55, (female) <65")//value given to the corresponding drop down text item
{
TextField2.rawValue = CAD.value
CheckBox7.presence = "visible"
}
(It's a health form: when the user chooses a disease from the drop down box, it displays info like the sNewValue in quotes above for each disease.)
As you can see from the above, this particular disease choice needs to display another TextField box (TextField2) and needs to make visible a CheckBox (CheckBox7) that is made "invisible" when that CheckBox initializes (this.presence = "invisible").
Oddly, while the script: TextField2.rawValue = CAD.value
works OK (the TextField2 displays the CAD.value correctly), the second script action: CheckBox7.presence = "visible" does not work (the Check Box stays "invisible").
New to LiveCycle, I suspect this is due to some script mistake I am making or using the wrong events, but after much trying, I can't seem to find and correct it.
Any suggestions would be appreciated.
Kind Regards,
Stephen