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.
SOLVED

full stop changed

Avatar

Level 5

Numeric field is set following:

object > field > pattern > display > in pattern field num{zz.}

in initial evetn

this.rawValue = this.parent.index + 1;

Another one is add button.

Problem is in numaric field. It shows

1,

2, instead of 1. 2.

I wish it will be

1.

2.

3.

related to the add button.

1 Accepted Solution

Avatar

Correct answer by
Level 10

What is the severa event?

Use the code in the layoutReady:Event but don't use a display pattern.

The best would be you use a text field not a numeric field.

View solution in original post

5 Replies

Avatar

Level 10

Hi,

use the layoutReady:Event instead the initialize:Event.

Avatar

Level 5

Thanks.

Actually I want

1.

2.

.

.

. as output.

However it shows

1,

2,
.

.

Just it shows comma after number instead of full stop (period). I want full stop.

How can I solve it?

Avatar

Level 10

Remove the pattern and use

var nIndex = this.parent.index + 1;

this.rawValue = nIndex + ".";

Avatar

Level 5

I apologize that it is not solved.

Where need to place the code? I have paced in severa event.

Avatar

Correct answer by
Level 10

What is the severa event?

Use the code in the layoutReady:Event but don't use a display pattern.

The best would be you use a text field not a numeric field.