These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Custom Calculation Script

djfixxx
Registered: Mar 22 2007
Posts: 111

I have a custom calculation script like this. ----------------------
event.value = this.getField("M
-----------------------
When I add the *0.485 it cause the fileds with numeric values of $2.00 to become $20.00
If I take out the * 0.485 value it works and adds $2.00 to be $2.00 instead of $20.00
 
Anything Im doing wrong?
I am trying to add the values of M&IE+Lodging+Transportaion+Rental Car+PersonalAutoMiles which is NOT a dollar value it is multiplied by 0.485

It professional, networking, technical, graphical, imaging, froms.

My Product Information:
Acrobat Pro 8, Windows
tedpadova
ExpertTeam
Registered: Dec 31 2005
Posts: 848
It's hard to tell what's going on with your calculation script without seeing the entire script.What you're showing us isn't going to do anything. We may need to see the entiore script.

Before submitting another question, double check your Format tab in your field properties for all the fields and make sure you have them formatted with the proper numeric formats.

ted

The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.

djfixxx
Registered: Mar 22 2007
Posts: 111
OK heres the kicker, on all but 1 field the people enter $ amounts i.e. $5.50, $17.12 etc.., this 1 field they enter a numeric value like 12 for mileage, that field is calculated as 12 times 0.485.

So the fileds add correctly until the 0.485 calculation is added to the script.
then values like $2.00 become $20.00.
I think this is a bug in acrobat 8

It professional, networking, technical, graphical, imaging, froms.

djfixxx
Registered: Mar 22 2007
Posts: 111
Can I send you the PDF?

It professional, networking, technical, graphical, imaging, froms.

djfixxx
Registered: Mar 22 2007
Posts: 111
Here's the URL
[url=http://www.rockndj.com/TravelAuthorization.pdf]http://www.rockndj.com/TravelAuthorization.pdf[/url]

It professional, networking, technical, graphical, imaging, froms.