Custom Calculation Script
I have a PDF converted from Excel using this Simple Calculation =B12+B14+B15+B17+(B18*0.485)+B19
When I use the same calculation in Javascript it causes $3.00 to become $30.00
event.value = this.getField("M
My format is correct and if I remove *0.485 calculation it works right.
Please don't tell me you can't use addition WITH multiplication. That would almost render Acrobat useless for fom calcs.
The form is here to check
[link=http://www.rockndj.com/TravelAuthorization.pdf]http://www.rockndj.com/TravelAuthorization.pdf[/link]
I'm sorry but your calculation got cut off so we can't see where the problem may be. Also you do not say if you are trying to do this in Acrobat or LiveCycle Designer. And, the link to your PDF is not working so no luck there either.
I'm not sure if writing the code again will help because there is a persistant problem with code getting cut off here- hopefully a fix is in the works, but you could try again to provide a working link to your PDF.
What you want to do is possible- you can have addition and mulitplication in your script- hard to say what the problem is though, due to the above issues.
Dimitri
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
Dimitri Munkirs
WindJack Solutions
pdfscripting.com