Skip to main content
Participant
June 7, 2019
Question

calculation

  • June 7, 2019
  • 3 replies
  • 397 views

i have a small question regarding formulas in acrobat. 4 fields there... if i enter a number in one of them i want to calculate the values of the other 3 fields. if i enter another number in a second field (not empty) the calculation should start from the beginning.... who can help me there??

This topic has been closed for replies.

3 replies

Thom Parker
Community Expert
Community Expert
June 7, 2019

What are you experiencing now, and exactly how do these fields interact?

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Inspiring
June 7, 2019

All fields with calculations are recalculated when the value of any field used in a calculation is changed. Note you may have to specify the correct calculation order for the correct values to be calculated and displayed.

BarlaeDC
Community Expert
Community Expert
June 7, 2019

HI,

One of the easiest ways to get a calculation updated on multiple fields, is to create the javascript at a document level and then call it from the validation event of each field, that way it will be run when each field is exited with the new values, but you wont suffer from the code being run when none of the fields are changed, which is what can happen with the calculate event.

You can search in the tools for 'JavaScript' and you should see the Document scripts option where you can add a script that will be available to any field in your document.

Hope this helps

Malcolm