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

calculation

New Here ,
Jun 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

i have a small question regarding formulas in acrobat. 4 fields there... if i enter a number in one of them i want to calculate the values of the other 3 fields. if i enter another number in a second field (not empty) the calculation should start from the beginning.... who can help me there??

TOPICS
Acrobat SDK and JavaScript

Views

211

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 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

HI,

One of the easiest ways to get a calculation updated on multiple fields, is to create the javascript at a document level and then call it from the validation event of each field, that way it will be run when each field is exited with the new values, but you wont suffer from the code being run when none of the fields are changed, which is what can happen with the calculate event.

You can search in the tools for 'JavaScript' and you should see the Document scripts option where you can add a script that will be available to any field in your document.

Hope this helps

Malcolm

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
LEGEND ,
Jun 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

All fields with calculations are recalculated when the value of any field used in a calculation is changed. Note you may have to specify the correct calculation order for the correct values to be calculated and displayed.

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 ,
Jun 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

LATEST

What are you experiencing now, and exactly how do these fields interact?

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