Inserting a 'difficult' formula in PDF
good day all!
i make pdf formula can't quite figure out how it. saw things java not expertise.
i want make form customers can enter voltage information , pdf form automatically give right answer.
this isn't difficult in excel in pdf can't done.
hereby example of how should look: (red fields have filled)
open | voltage information | times | voltage information | close | plus | header 9 | voltage information | times | voltage information | close | times | standard information | equels | solution | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
( | number customer can fill | x | number customer can fill | ) | + | ( | number customer can fill | x | number customer can fill | ) | x | 1.25 | = | number |
so formula in excell than:
=(2*3)+(2*3)*1,25= auto answer
could me this?
you didn't specify field names... let's they're called voltinfo1 voltinfo4. in case, can use code custom calculation script of field should hold result:
var v1 = number(this.getfield("voltinfo1").value);
var v2 = number(this.getfield("voltinfo2").value);
var v3 = number(this.getfield("voltinfo3").value);
var v4 = number(this.getfield("voltinfo4").value);
event.value = ((v1*v2)+(v3*v4))*1.25;
i unclear whether final multiplication should applied result of sum or not, might need edit parentheses make work properly...
More discussions in PDF Forms
adobe
Comments
Post a Comment