Recent

Author Topic: calculating money values in forms  (Read 362 times)

0 Members and 1 Guest are viewing this topic.

Offline pspdfppdfxhd

  • Ninja Member
  • *
  • Posts: 2634
  • Gender: Male
calculating money values in forms
« on: May 15, 2019, 11: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.

Offline Joe

  • Master of Nothing
  • Administrator
  • Ninja Warlord
  • *****
  • Posts: 37035
  • Gender: Male
    • B4Print.com
Re: calculating money values in forms
« Reply #1 on: May 15, 2019, 01:12:36 PM »
How are you having it do the calculations presently?
Mac OS 10.14.6 Mojave | Prinergy 8.2 | Adobe Creative Cloud 2019 | Two Luscher XPose 160 CTP units

Prepress: One who does precision guess work based on unreliable data provided by those of questionable knowledge.

Offline pspdfppdfxhd

  • Ninja Member
  • *
  • Posts: 2634
  • Gender: Male
Re: calculating money values in forms
« Reply #2 on: May 15, 2019, 01:37:47 PM »
Sokay, got er done, had to put in a validation script: if (event.value==0) event.value = "";

Googled it. It worked.