Solved

recalculating form fields

Posted on 2011-03-23
1
1,109 Views
Last Modified: 2012-05-11
We are using LoadFDFData in a program to populate a form.  The form has many rows like
 event.value =   this.getField("delivered3").value *     this.getField("price3").value ;

When I open document in Adobe reader, the event value(amt) fields are not calculated until I change one delivered value, then all are recalculated.

Is there something that I can execute before saving in order to recalculate ALL filled in values?

 

0
Comment
Question by:jbmsystems
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 35217631
You can create  JavaScript "program" that gets executed when the document loads and forces a recalculation of your form.

To do that, you need to create a document level script. How you do that depends on which version of Acrobat you are using. In Acrobat 9, use Advanced>Document PRocessing>Document JavaScripts..., in Acrobat X use the Tools panel and select JavaScript>Document JavaScripts. When the dialog pops up, specify a name for your script (e.g. "ReCalcForm") and click on the Ad button. This will bring up the editor window. Remove the three lines that are filled in by default and replace them with the following line:

this.calculateNow();

This script will get executed when the form loads and will force a recalculation.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
This article discusses how to create an extensible mechanism for linked drop downs.
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question