Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Dynamitic form adds rows but does not always calculate new totals

Avatar

Former Community Member

My form adds rows and calculates the totals if i add all the rows first, but NOT if i add the rows on the fly.

It seems like i need a refresh script but i'm not sure of the syntax and suggestion?

thanks Deb

2 Replies

Avatar

Level 2

Likely need to add the following line of script after you have adding the row

xfa.form.recalculate(1);

Avatar

Former Community Member

Thanks that got me on the right path.

I ended up adding that line on change to my amounts field