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

Discount !

hchl2pr
Registered: Jan 4 2007
Posts: 10

Hi ! It's me again ;-)
Id like to know if it's possible to make a discount (40% for exemple) from an amount ??
 
Regards
hchl2pr

My Product Information:
Acrobat Pro 7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Certainly! This is just a calculation. In the field where the result will be displayed add the following code to the Calculation Event.

event.value = .4 * this.getField("Amount");

Take a look at this article:
[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/form_calculations/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/form_calculations/[/url]


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