Solved

recalculating form fields

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

911 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

16 Experts available now in Live!

Get 1:1 Help Now