Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

recalculating form fields

Posted on 2011-03-23
1
Medium Priority
?
1,152 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
1 Comment
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

972 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