Hi Thom ! I'd like to know if there is a script that calculat the VAT from a texte field ?? Ex : We have an amount of : 20$ and VAT : 6% The total amount should be = 20/100x6 Do you think it's possible ?? Regards hchl2pr
Thom Parker The source for PDF Scripting Info www.pdfscripting.com Very Important - How to Debug Your Script
event.value = 0.06 * this.getField("Amount").value;
be sure to use the correct field name for "Amount".
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