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

PDF calculation problem: Simple subtraction not working

New Here ,
Apr 15, 2016 Apr 15, 2016

I am trying to subtract two fields, typed in java script, and am having no luck with it calculating. The field names match, there are no spaces; my formula is "H-SD" nothing more. I am using Adobe Acrobat Pro XI. This needs to be completed by next Wednesday, April 20, 2016. Any ideas?

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
Community Expert ,
Apr 15, 2016 Apr 15, 2016

Add a space between the field names and the minus sign.

On Apr 15, 2016 7:10 PM, "shannonr80675036" <forums_noreply@adobe.com>

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
LEGEND ,
Apr 15, 2016 Apr 15, 2016
LATEST

Have you checked the JavaScript console in Acrobat for any errors?

You can use the simplified field notation option and just use the field names with a minus sigh between them.

If you are using the custom JavaScript Calculation, it is more complicated since one needs to add code to focus on the various field objects and their properties as well as providing the symbol for the calculation. There may also be some issues with the value of the field and displayed rounded value.

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