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

Creating Various Calculations in Adobe PDF Form Fields - PLEASE HELP!!!

New Here ,
Jun 03, 2020 Jun 03, 2020

Copy link to clipboard

Copied

I am trying to create a calculation for various lines in Adobe PDF Forms and cannot seem to get it right and continue to get the NaN error. Here are some of the calculations I need to create in the form field:

 

Divide Line 17 by Line 25 and multiply by $100.

Multiply Line 28 by Line 29 and divide by $100

Subtract B from A and divide by Line 32 and multiply by $100.

Multiply B by 0.08 and divide by Line 32 and multiply by $100.

Here is a screenshot of one of the sections I am working on in this document. Each setion of this document has various calculations that i need to create within the form. 

cbolin_0-1591191786568.png

Could someone please help!!!!

Views

609

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 ,
Jun 03, 2020 Jun 03, 2020

Copy link to clipboard

Copied

LATEST

You're form doesn't contain any calculations, so there's nothing to correct. But it does contain formatting on the fields. You need to remove all field formatting until you have the calculations worked out. Formatting will mask issues and hamper debugging.

 

You may be having divide by zero issues.  This is a common isssue on a form calculations.   

Sounds like you could use some training, or custom help.  You can get training on scripting calculations here:

https://www.pdfscripting.com/public/Calculating-field-values-and-more.cfm

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