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

Addition with negative numbers in a form

New Here ,
Dec 20, 2017 Dec 20, 2017

Copy link to clipboard

Copied

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

Views

1.0K

Translate

Translate

Report

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?

Votes

Translate

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Check the calculation order of the form.

Votes

Translate

Translate

Report

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