I am writing a script where taxes are calculated if a "Payable" check box is marked. I have tried without success to come up with right script using Formcalc.
The basic calculation is
PST=(Difference+Admin*.05)
What I am trying to do is script the following .....
If the check box is checked off as "Payable" then the PST is calculated. If the box is not checked off then PST is not calculated. In Check Box Binding Name is "Payable" , the on value is 1 and 0 is off
I have tried different several variables in my formula without success such as these examples
PST=(if PAYABLE=1 then DIFFERENCE+ADMIN*.05)
PST=(DIFFERENCE+ADMIN*.05) if PAYABLE=1
if PAYABLE=1 then PST=DIFFERENCE+ADMIN*.05
Can anyone make sense of what I am trying to do and direct me??
Thank You in Advance
if( PAYABLE==1) then
PST = DIFFERENCE+ADMIN*.05
endif
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script