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

Help with script


Level 7

Any time I add a new line(Instance) I also populate auto a line number(1, 2, 3,......).

Thats fine.

The problem I have is when for example I have 3 instances and I like to delete the instance #2,

the line numbering remains 1 and 3 which it is not correct! Much be 1 and 2.


1 Reply


Former Community Member

Just move your code that puts the value in the box (LineNum field) from Initialize to Layout Ready.