How to properly use calculations in forms?
So i just downloaded the test version of Acrobat DC, because i wanted to try a few things with Forms and the posibility to wirte own calculations with JavaScript for example.
My problem is, that I don't know where to start. There are a few guides and tutorials, but they go waaay too deep for my issue, so i thought i might ask here.
I'd like to execute some simple calcuations in my pdf like:
I have 3 fields. One is the total value and the other 2 are parts of the total vauel. (e.g. field 1 has a vaule of 1000 and field 2 has a vaule of 600, so field 3 has one of 400. Lowering the vaule of field 2 from 600 to 550 increases the value of field 3 by 50)
I have on field with a drop down menue (so lets stick to my first issue and lets say that i have a dozen fields of different values and split values, but only 3-4 matter in a time), so I'd like to make the first field with the total value a drop down field with all different total vaules witle field 2 and 3 change automatically based on the current total value in field 1.
There are quite a few simular examples, but i guess if i know how to solve these 2, i can figure out how to solve to rest on my own.
My problem right now is, that while I am quite comfortable with java, i didn't use java scrypt that much, neither did i use Acrobat DC until now.
Can anyone provide me with a proper tutoral for my specific problem?