Skip to main content
Known Participant
June 21, 2016
Answered

Auto Recalc

  • June 21, 2016
  • 2 replies
  • 936 views

(know enough to break stuff!)

Have 2 questions - if it's ok I'll post separately

Have a form that uses a CheckBox to automate filling in a calculation - this works fine. But on that form is a "totals" field that sums a few other fields. Problem is, is when you use the CheckBox to auto calculate, the "totals" field does not total.

Would think I could use a mouseup action to (re)calc the totals field but I can't find how that would work, anywhere.

This topic has been closed for replies.
Correct answer try67

To force a re-calculation of the entire document you can use this command:

this.calculateNow();

2 replies

Inspiring
June 21, 2016

Have you looked at the Acrobat JavaScript console for any errors?

JavaScript is an interpreted language. This means that each time a line of code is processed the text is read, interpreted into  tokens that run the actual and cod and the code is run. Any error during any processing of the code will stop all the scripts.

Next verify the calculation order of the fields.

Have you renamed or deleted any fields since you created the calculations?

try67
Community Expert
Community Expert
June 21, 2016

What exactly does the check-box field do? How is it interacting with the other fields?

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 21, 2016

To force a re-calculation of the entire document you can use this command:

this.calculateNow();

HambergAuthor
Known Participant
June 21, 2016

Thanks 67 - that works!! (wish there was a list of commands and their usages??)