Skip to main content
Known Participant
October 13, 2024
Answered

How to solve: Value is calculated at second run

  • October 13, 2024
  • 1 reply
  • 555 views

Hello,

 

i have a huge form in a PDF file (Acrobat DC Pro) with multiple fields per page.

The values of the pages are calculated via javascript.

At the end i have to sum fields. The values of these sum fields are calculated via the inbuild Option
    "Value is the [sum (+)] of the following fields:"

 

Unfortunatelly one of the two sum fields is getting calculated in the next run of the script.

 

I have sorted all the fields in the object list by their display and calculation order on the pages, and the second of the summary fields works great.

 

What i need to do du generally go sure that those calculations are still made in the first script run?

This topic has been closed for replies.
Correct answer Bernd Alheit

Is the field calculation order correct?

1 reply

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
October 14, 2024

Is the field calculation order correct?

FireholdAuthor
Known Participant
October 14, 2024

Thank you for your fast answer.

The field which is calculated wrong is at the last position in the order, so all dependend fields should be calculated before. Is that wrong?

FireholdAuthor
Known Participant
October 14, 2024

Oh, i thought the calculation order is setup by sorting the fields order in the forms tool on the right sidebar.

Now i found the "Set field calculation order" at the three dots-menu of this sidebar.

I changed the position once up and down and now it seems to work. Dont know why it doesnt before but im happy now.

Thank you very much!