Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Calculating values from repeated fields.

Avatar

Level 3

I have a subform that repeatable, how to i calculate a value from a fields from the repeated values?

2 Replies

Avatar

Level 10

Find your answers in help topics for the keyword "Instance Manager".

Avatar

Former Community Member

Hi,

Try using the following FormCalc code on the "total" field which is outside of your repeating row/subform:

 

total.rawValue = sum(form1.Page1.Row1[*].Amount[*]);

Row1 - Repeating Row

Amount - Column dedicated to Amount

Hope this helps

Thanks,

VJ