Answered
I'm trying to create a simple javascript calculation in a PDF form but I'm getting a "missing ; before statement 1: at line 2".
In this particular field, the first Ice Skating poster is free but each one after it costs $20. There is a quantity and total field, this calculation is for the total.
Var a=getField("IceSkating").value;
event.value = a * 20 (-20)
if (event.value < 0) event.value = 0
If anyone can see my error please reply.
Thanks
(a*20)-20
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com