Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Incrementing the displayed number of rows in a table

Avatar

Level 4

I am using LiveCycle 9.0 and I have made a dynamic table with a button that I have actioned to add a new row. I would like each row to have a number that increments each time the button is clicked to add a new table row on the dynamic pdf. What script do I need to make those numbers appear? I curently have the first cell of the table as a text object and do I select "initialize" "Calculate" what from the script menu?

Please help.

2 Replies

Avatar

Level 2

Calculate method

var

count = _Row1.count;

this.rawValue

= Row1.index + 1;

Avatar

Level 4

Perfect!. Thank you so much.