This example demonstrates how to calculate the sums of fields located at different levels of the form hierarchy when the form filler opens the form in a client application, such as Acrobat Professional, Adobe Reader, or HTML client.To see this scripting example and others, visit the LiveCycle ES Developer Center at www.adobe.com/devnet/livecycle.To calculate the sum of repeating fields in a form, you add a calculate event to the Sum field:Similarly, to calculate the sum of repeating fields, you add a calculate event to the Sum field:To calculate the sum of the fields on the page, you add a calculate event to the Sum field: