Formulas in PDF Document
Copy link to clipboard
Copied
Hello, I would like to seek some advice regarding formulas in my PDF worksheet. I have 1 section for keying in the weight value but the minimum weight for calculation is 50kg (as per our protocol), anything <50kg will have to use 50kg to calculate. Kindly advise if there are any edits to be made here.
Copy link to clipboard
Copied
Hi,
Are you asking how to write a line of code in javascript that will do what?
Is it going to multiply or divide by when a user enters weight in one text field amd then display the total in another field?
Copy link to clipboard
Copied
JavaScript us required for any calculation with a condition.
But more information is needed to help you with this script.
Please explain the exact details of the calculation.
Read about conditional calculations here:
https://acrobatusers.com/tutorials/conditional-execution
Use the Acrobat JavaScript Reference early and often