Solved

recalculating form fields

Posted on 2011-03-23
1
1,056 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 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
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 …

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now