I don't know if anyone here can help with this, but I have javascript issue in a PDF form. I have a field in the PDF form with a value of $12.00 (i.e. grandtotal). In another field in the form (i.e. Percentage) I'm trying to set the value at 80% of what the grandtotal value is. So, 80% of $12.00 is about 9.50, right? But all I get is a 0 total. The code behind the percentage field is below. Does anyone know why it doesn't work?
-
{
-
var a = this.getfield("grandtotal");
-
event.value = a / 0.80;
-
}
-
Thanks in advance
P.S. I using Acrobat 8 Professional