B4Print.com

Applications => Adobe Acrobat => Topic started by: pspdfppdfxhd on May 15, 2019, 09:52:40 AM

Title: calculating money values in forms
Post by: pspdfppdfxhd on May 15, 2019, 09:52:40 AM
Anyone ever had this situation:

I have to create a calculating form in Acrobat like: the quantity is a form box, and the value per unit is a currency number in a form box and there's a third form box that calculates the quantity x the value to a final value. (for example, quantity is 5, price per unit is 1.75, final cost is 8.75. This works ok except if the quantity is not entered and the price per unit is not entered, the 3rd box displays 0.00. I was hoping it would just remain blank, it looks weird.

I don't know javascript but I bet that's the way to do it. I will keep searching Acrobats prefs etc. and maybe I will find something.
Title: Re: calculating money values in forms
Post by: Joe on May 15, 2019, 11:12:36 AM
How are you having it do the calculations presently?
Title: Re: calculating money values in forms
Post by: pspdfppdfxhd on May 15, 2019, 11:37:47 AM
Sokay, got er done, had to put in a validation script: if (event.value==0) event.value = "";

Googled it. It worked.