I am looking for some help on the correct javascript that would accomplish adding the sum of a field in a Collection and placing the calculated total into a field outside of the collection.
I have reviewed the Forms 9.1 administration guide that discusses javascript calculations (found here: http://www.laserfiche.com/support/webhelp/laserficheforms/9.1/en-us/forms/#CustomizingYourFormExamples.htm), and although one of the last examples on that page describes how to calculate fields from within a Collection, it only shows how to add the values to a subtotal field also within the collection and not a "Total" field outside of the collection.
I've attempted many permutations to the sample code to see if I can make it work, to no avail. Any help will be much appreciated.
EDIT: Even going with the example used in the administration guide where there's a subtotal adding the sum of the fields in a "collection", how would you then calculate the sum of all of the subtotals and place the value in a "Total" field outside of the collection?