Solved

ADOBE ACROBAT JAVA SCRIPT TO SUBTRACT

Posted on 2008-10-15
2
2,242 Views
Last Modified: 2010-08-05
I have a Form that I need a calculated field in, but I don't know the scripting enough to do what I want.  Here is the formula in lamans terms.

((Field 1) - (Field 2) )
Thanks
0
Comment
Question by:nursecore
2 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 250 total points
ID: 22724731
I assume you have three fields, field1, field2 and the result field. I also assume that you created your form in Acrobat (and not in Designer, an application that comes with Acrobat).

Open the properties dialog for your result filed and go to the "Calculate" tab. On that tab select to create a custom calculation script. Click on the Edit button and paste the following one line script into the editor:

event.value = this.getField("Field1").value - this.getField("Field2").value;

Make sure that you replace the field names with the ones that you are using.
0
 

Author Comment

by:nursecore
ID: 22733230
Thanks this worked great!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Computer freezes up when trying to add a comment to a PDF file 5 131
Adobe Acrobat Pro DC & Document Cloud 2 138
PDF writer for SBS 2008 11 97
A PDF to HTML file converter 2 130
Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe INTRODUCTION This Article is a follow-up to the Article entitled How To Rename-Move a Batch of PDF Files Based o…
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

830 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