I have a quantity field in a repeating section. I need to determine the total of that field outside of the section. How do I sum up the quantity of items inside the repeating section in Cognito Forms.

1 Answer 1


I am a developer with Cognito Forms

The easiest way to total up the quantity across all items in a repeating section is to leverage a calculation field to sum up the total.

For example, if you have a repeating section called "Products" and within each item you have a number field called "Quantity", you can create a calculation field outside of the repeating section. The calculation would simply be =Products.Sum(Quantity). Make sure to set the Type of the calculation field to be "Number" so that the value is formatted correctly.enter image description here

I've included a screen shot a basic form that illustrates this setup.

You can also find this, and other powerful calculations in our help documentation at: http://help.cognitoforms.com/calculations-overview, check out the section on "Working with Repeating Sections".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.