Article View: adobe.pdf.workflow
Article #54Writing a custom calculation script
From: Debbie_Vair
Date: Mon, 12 Feb 2007 15:04
Date: Mon, 12 Feb 2007 15:04
8 lines
1081 bytes
1081 bytes
I'm trying to write a calculation. What I need it to say is if the event value equals less than 299 it should equal $15.00. If the event value is greater than 300 it should take the event value multiplied by .05 cents. This is what I have so far and it is not working. Can anyone help me? I'm working in adobe 7.0 professional.
var f = this.getField("Value1");
var g = this.getField("Value2");
event.value = f.value * g.value;
if (event.value < 300) event.value = f.value * g.value; // if under 299 set to 15 limit
Thank you!
Technical Details
Message-ID:
<3bc320b7.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.germany.com!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 1074f2,a0def9273fc1710f,start X-Google-Attributes: gid1074f2,public X-Google-Language: ENGLISH,ASCII-7-bit From: Debbie_Vair@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.germany.com!news.isoc.lu!webcrossing Newsgroups: adobe.pdf.workflow Subject: Writing a custom calculation script Message-ID: <3bc320b7.-1@webcrossing.la2eafNXanI> Date: Mon, 12 Feb 2007 07:04:11 -0800 Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit