Copy link to clipboard
Copied
Hello, Everyone! I'm still learning on how to prepare a form in Acrobat. I would like to ask your help on how to get the total multiplication of the Text Field 644 and Text Field 645 and adding the total sum of the execution score in one Text Field.
See image for reference:
Thank you!
As custom calculation script of "Text Field 646" use this:
var f644 = Number(this.getField("Text Field 644").valueAsString);
var f645 = Number(this.getField("Text Field 645").valueAsString);
var total = 0;
for( var i=1; i<=7; i++){
var fields = Number(this.getField("3."+i).valueAsString);
total += fields;}
event.value = (f644*f645)+total;
Copy link to clipboard
Copied
As custom calculation script of "Text Field 646" use this:
var f644 = Number(this.getField("Text Field 644").valueAsString);
var f645 = Number(this.getField("Text Field 645").valueAsString);
var total = 0;
for( var i=1; i<=7; i++){
var fields = Number(this.getField("3."+i).valueAsString);
total += fields;}
event.value = (f644*f645)+total;
Copy link to clipboard
Copied
Hey, Nesa. This works on my end. Thank you!