Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Simple New Form Calculation

Avatar

Level 4

I'm creating a new form that users will enter amounts of money such as $100.00 or $300.00 in. I will have 3 or 4 fileds users will be entering the amounts in. At the bottom I will have a totals field. How do I make the totals field show the sum of the amounts that is entered into the field?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Here is a screen shot for your help..

Thanks

Srini

function(){return A.apply(null,[this].concat($A(arguments)))}

View solution in original post

3 Replies

Avatar

Level 10

In the field where you want to display the total write the similar script below in the Calculate event..

Change the language to FormCalc and Calculate Event..

Sum(NumericField1.rawValue, NumericField2.rawValue, NumericField3.rawValue,NumericField4.rawValue);

Thanks

Srini

Message was edited by: Srini Dhulipalla
Corrected the syntax..

Avatar

Level 4

I can't find where I would change the language to FormCalc and Calulate Event......please help

Avatar

Correct answer by
Level 10

Here is a screen shot for your help..

Thanks

Srini

function(){return A.apply(null,[this].concat($A(arguments)))}