Answered
Hi there,
I'm struggling with Acrobat X. I have a customer form with an address. If a check box is set the address should be copied to another field billing address.
I'm using a mouse up action in the checkbox :
if(this.getField('CheckBox2').value == 'Yes') {
this.getField('Morada2').value = this.getField('Morada').value;
}
When debugging I get the message :
TypeError: this.getField("Morada") is null
But the field Morada is filled....
Can someone help me out please ?
Thanks,
Alcides
If you have been using Acrobat to create the form, double-check the spelling of the field name.
Also, you should try double quotes instead of single quotes throughout your scripts.
And finally, you might have fewer issues by addressing the check box as event.target such as in
if (event.target.value == "Yes") {
Hope this can help.