Hi,
I have a form in acrobat 8 pro where I need to add a simple percentage calculation but I do not how. Here is what I have...
Field A (which can have a value from 1-5 that the user will fill out) needs to be multiplied by Field B (which is a % value between 1-100% that the user will fill out) And then I have field C which is the total of the multiplication of field A x Field B.
I also need field B to be displayed as 10% when the user enters 10 instead of the default 1,000%.
So more simplified... This is what I need to do:
3 x 20% = 0.60 (but the "3" and 20% will change accordingly to what the user enters, of course)
Can somebody PLEASE help me? or give an script to do all this?
Thanks in Advance,
Isa
Hope this would help!
1) "I also need field B to be displayed as 10% when the user enters 10 instead of the default 1,000%. "
// this code is placed in Format tab/Custome Format Script.
if (event.value != "") {
event.value = event.value + "%"
}
2) "3 x 20% = 0.60 (but the "3" and 20% will change accordingly to what the user enters, of course)"
//Place this code in Calculate tab/custome calculation script.
var a = this.getField("Field A");
var b = this.getField("Field B");
event.value = a.value * (b.value / 100)
HT