the Custom Calculation Script
hi All,
I have no experience in creating calculation scripts in Adobe Acrobat, but now having made a transition to a paperless office, I need to create some new documents that have java calculation scripts within.
Initially the documents were in excel format and had Sum calculations at the bottom of each range.
i.e.
A1:A5 have single numbers from 1 thru 5
A6 was a sum of A1:A5 but with a twist!
The sum only rounded up if the sum was greater than .6 (point 6)
and rounded down if the sum was less than .6 (point 6)
My original excel calculation is shown below if it helps
=IFERROR(IF(MOD(AVERAGE(A1:A5),1)>0.5,ROUNDUP(AVERAGE(A1:A5),0),ROUNDDOWN(AVERAGE(A1:A5),0)),0)
I assume this will use the Adobe text box names a references to calculate a sum, rather than a cell reference, but I am a little lost.
Can anyone assist in creating a java calculation to achieve the same result?
Product is Adobe Acrobat Student Teacher Edition 2017, but this is only installed on a few systems, Adobe Reader DC is the main application form filling forms.
Thanks
