Solved

recalculating form fields

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe INTRODUCTION This article presents a solution to a question (http://www.experts-exchange.com/Programming/Installation/Q_28396542.html)…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
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…

734 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