I'm pretty new to Acrobat and just as much a novice with javascript but I have a pdf form where I need to have one field display the product of two other fields but only if both of those two fields are filled in; if not, the user needs to be able to enter a number directly into the field.
I've tried many variations on the following javascript with no success:
var Text11 = this.getField("Text11") ;
var Text12 = this.getField("Text12") ;
var Text13 = this.getField("Text13") ;
if (Text11.value != Text11.defaultValue && Text12.value != Text12.defaultValue) {
// do my calculations
}
else {$ = Test11.value * Test12.value}
endif
Any assistance with this would be greatly appreciated!
Thanks