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.

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