I am quite new to the adobe form.. and having problem with it. I am trying to get the subtotal from every page.
I already put this code into the script:
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
var total = 0;
for (var i=0; i <= fields.length-1; i++) {
if (fields.item(i).name == "WRBTR") {
total = total + fields.item(i).rawValue;
}}
this.rawValue = total;
but somehow it doesnt work.. the output just gave me blank value for the subtotal field, and that means something wrong with my form. Is there some way i can retrieve the subtotal value? I also attached the xml.. Thanks.
Views
Replies
Total Likes
Attaching the PDF would be more helpful.
Views
Replies
Total Likes