Need Help with Simple Division on Fillable PDF / Java (see image)
Im getting the dreaded "value doesnt match format" pop up. I have sucessfully created my first fillable PDF but now I need someone to help me with the java
I have never "done" java ... and I am a newbie at best with creating PDFs and adobe.
Here is what I am trying to do. Its super basic I just dont know anything about Java
example:
Text30 = Text27/Text28
Text29 = Text27/total
Text33 = Text26/total
Text34 = Text26/Text28
I realize the errors are popping up due to my simple formulas having empty blanks that are "seen" as zeros ...
for Text30 = Text27/Text28 I did try this to no avail:
var Text27 = this.getField("Text27").value;
var Text28 = this.getField("Text28").value;
if (Text28 !== 0) {
event.value = Text27 / Text28;
} else { event.value = "Divsion by zero!"; // Handle the case of division by zero
}

