calculating money values in forms

Started by pspdfppdfxhd, May 15, 2019, 09:52:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pspdfppdfxhd

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.

Joe

How are you having it do the calculations presently?
Mac OS Sonoma 14.2.1 (c) | (retired)

The seven ages of man: spills, drills, thrills, bills, ills, pills and wills.

pspdfppdfxhd

Sokay, got er done, had to put in a validation script: if (event.value==0) event.value = "";

Googled it. It worked.