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.

Display total number of rows in a table.

Avatar

Level 1

I am building a form that tracks uses of my company debit card, using a dynamic table with an "Add Row" button. I would like to place a box near the top of the form that will count the rows and dispay a total number of uses.

Thank You

Rab

1 Reply

Avatar

Level 10

Hi,

you simply need a small FormCalc script in the calculate event of your text field.

If you table is named 'Table' and the repeatable row is named 'Row' it looks this way:

$ = Table._Row.count