I am a beginner, help would be appreciated!
I have a form that has two calculations dividing by 11 and showing the result with no decimal places. I then want to subtract one of the answers from the other. Problem is the subtraction is using the complete number (with decimals) and I want the subtraction to be the rounded numbers. Here is the script I have:
var a = this.getField('G9');
var b = this.getField('G20');
event.value = (a.value - b.value);
I want the rounded value of G20 to be subtracted from the rounded value of G9.
Thanks in advance. . .
Quick fix for you.
-- Open the Text Field Properties dialog box for your fields.
-- Click the Format tab, and select Number from the Select format category dropdown list.
-- Choose the number of decimal places, which is 2 by default.
-- Click Close.
Repeat the process for your G9, G20, and the calculation result field.
donna.
A prolific author and writer of many Acrobat books, as well as books on graphic and Web design software.
Donna lives on a lakeshore in central Canada, where all manner of wildlife from muskrats to coyotes come to call.