Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

Help with Calculation(SUM)

Avatar

Level 7

I have a table with several columns and rows and a separate numeric field named TOTAL.

How for the numeric field(TOTAL) can calculate(Sum) the cells of a table(cells are numeric fields-Last column named: T1,T2, T3)

thanks

1 Reply

Avatar

Level 10

You can place the below syntax in the Calculcate event of the TOTAL field on your form.

Language : FormCalc

     SUM(T2,T3,T4); (OR)

     SUM(T2.rawValue,T3.rawValue,T4.rawValue);

Assuming your field names are T2, T3 and T4.. rawValue is not mandatory in FormCalc to get the field value.

Thanks

Srini