I am currently working on an order form that has multiple items, each in
their own sub form. I am using the following script in the layout:ready
function on my total box. The problem I am having is it is only adding
up the totals from the first page of the form, and not recognizing the
totals from the second page of the form. any help would be great,
thanks!varfields = xfa.layout.pageContent(0 , "field", 0);var total =
0;for (var i=0; i <= fields.length-1; i++) {if (fields.item(i).name ==
"p1") ...