Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Addition with negative numbers in a form

New Here ,
Dec 20, 2017 Dec 20, 2017

Hello, I am trying to add a column of positive and negative numbers on an electronically created form as shown below:

For some reason, the "Above Totals" field is treating the negative as a positive number, resulting in a total of 3 instead of 1. Once I finish typing in the next row; however, the field correctly treats the negative as a negative number as it should be calculated:

There seems to be some type of delay with this calculation that does not get corrected  until the user manually enters an additional piece of data. Is there a reason why this calculation is not happening automatically? Thanks so much.

TOPICS
Acrobat SDK and JavaScript
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 20, 2017 Dec 20, 2017

Usually, when calculations seem delayed by an entry it is a calculation order issue.  One calculated field depending on another, but the first field is calculated after the second. Do you have calculations that depend on each other for this result?

Translate
Community Expert ,
Dec 20, 2017 Dec 20, 2017

Usually, when calculations seem delayed by an entry it is a calculation order issue.  One calculated field depending on another, but the first field is calculated after the second. Do you have calculations that depend on each other for this result?

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2017 Dec 20, 2017
LATEST

To Set the calc order. Put the form in "Prepare Form" mode, then select "Calculation Order" from the menu displayed by clicking on the button shown below.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2017 Dec 20, 2017

Check the calculation order of the form.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines