Hi everyone,
I’m building a FormAssembly form where users can enter multiple levels, each with an amount field inside a repeatable section.
I want to calculate the total amount by summing all of those amounts from each repeated entry.
I followed the usual process:
- Created a repeatable Fieldset with a currency field named Amount
- Marked the Amount field as a variable
- Added a hidden subtotal field inside the repeatable section (Line Total)
- Added a calculation field outside the repeatable section using @SUM(Line Total)
But the total field still throws an error or doesn’t calculate.
Below is Attachment:
답변 1개
It may be too late for this response, but this article helped me:
https://www.formassembly.com/blog/tutorial-how-to-use-calculations-and-repeating-sections-in-web-forms/#:~:text=First%2C%20you'll%20need%20to,directly%20in%20the%20form%20builder.
The subtotal field should be a variable too. In the Total Amount field you will add the name of this variable (subtotal) in the calculated field section. No formula required, just the name of the subtotal variable.