Can you help me to insert a JAVA script into an Adobe PDF form I have created.
i have never programmed in java , need java script insert calculation field in adobe pdf form creating using adobe acrobat pro dc. form 1 can filled out on pc or printed out , filled in manually. calculated field display unwanted 0 when printed out , want blank. field calculated percent , displays error when there no divisor; similar problem, want blank , have person filing out form manually calculate field , write in. don't have time learn
the excel formula be: if(cell_1a="","",cell_1a+cell_1b)
what java script in "simplified field notation" or "custom calculation script" dialog box?
both of these things require custom calculation. division script can use this:
var = number(this.getfield("field a").value); var b = number(this.getfield("field b").value); if (b==0) event.value = ""; else event.value = a/b;
for conditional script can use this:
var = this.getfield("cell_1a").valueasstring; var b = this.getfield("cell_1b").valueasstring; if (a=="") event.value = ""; else event.value = number(a)+number(b);
More discussions in JavaScript
adobe
Comments
Post a Comment