These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Subtracting in Designer

ariley
Registered: Dec 14 2006
Posts: 2

How do I have fields subtract in Designer, with JavaScript?
 
Thanks!

My Product Information:
Acrobat 7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
in the Calculate event for the result field use code that looks like this.

this.rawValue = fld1.rawValue = fld2.rawValue;

Where "fld1" and "fld2" are the fields you want subtracted from one another.

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script