how do you calculate fields in acrobat pdf using javascript?

To fixed this, Javascript Addition operator “+“` can also be used to add (concatenate) strings. The empty field was acting as string so you will need to escape the string by appending + to the values.

sum += +a[i].value;

It is the same as var fields = +this.getField("amount");

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top