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
SOLVED

Looking for a script possibly?

Avatar

Level 3

Is there a way to make text and a number appear numerically.  For example, I have a table where you can add rows and one of the columns is txt with a number.  Can I have that number show up in numeric order each time a row is added?  The text is MR + 1 or so on.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Sure,

use FormCalc in the layoutReady event of the textfield.

     $ = Concat("MR ", $.parent.index + 1)

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Sure,

use FormCalc in the layoutReady event of the textfield.

     $ = Concat("MR ", $.parent.index + 1)

Avatar

Level 3

YES!! thank you so much...this is perfect!!