Solved

Field calculations in Acrobat form

Posted on 2003-10-24
1
605 Views
Last Modified: 2012-08-13
How can I subtract one field from another in Acrobat 6?
I can only find the sum function.
0
Comment
Question by:Lucrecious
1 Comment
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 50 total points
ID: 9792751
Use JavaScript in the "Custom Calculation Field":

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

The assignment "event.value =" assignes the difference of two fields to a third field.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Acrobat’s JavaScript is a great tool to extend the application, or to automate recurring tasks. There are several ways a JavaScript can be added to the application or a document (e.g. folder level scripts, validation scripts, event handling scripts,…
The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
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 …
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…

747 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

12 Experts available now in Live!

Get 1:1 Help Now