Answered
Summary total across spawned pages
- May 1, 2025
- 1 reply
- 698 views
Hi Experts, I am now trying to add hidden totals across spawned pages to a summary page, can someone help me out, Thanks
See below is the script i tried using, i also attached the current PDF
var result = this.getField("Food");
var sumAd = 0;
for (i = 0; i < this.numPages-1; i++) {
var getCurrent = this.getField("P" + i + (".Additional.subTotal"));
sumAd = getCurrent.value + sumAd;
}
event.result.value = sumAd
this.pageNum = this.numPages-1;
