Skip to main content
Participant
December 19, 2019
Question

Formulas in PDF Document

  • December 19, 2019
  • 2 replies
  • 246 views

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. 

 
This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
December 19, 2019

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

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
ls_rbls
Community Expert
Community Expert
December 19, 2019

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?