Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2008-01-09 13:24:45

chansen
Member
Registered: 2008-01-09
Posts: 0

Custom calculation script question

Need help scripting in Acrobat 8P.

I have a list price field, discount field (end user will enter the percentage of discout (20, 25, 30, etc.)), and discounted price field.

What would be the best way to script it to calculate the discounted price (list - discout)?


My Product Information:
Acrobat Pro 8.1 / Macintosh

Offline

 

#2 2008-01-11 20:20:21

tedpadova
Member

Registered: 2007-04-30
Posts: 69

Re: Custom calculation script question

Try this:

// user entry field is: discount

var f =this.getField("discount");
var g =this.getField("amount");
event.value = g.value - (f.value * g.value);

ted

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in