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 informationtimesvoltage informationcloseplusheader 9voltage informationtimesvoltage informationclosetimesstandard informationequelssolution
(

number customer can fillxnumber customer can fill)+(number customer can fillxnumber customer can fill)x1.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

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues