Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Subform auto-sequencing with alpha chars

Avatar

Former Community Member

Hi, can anyone help with my problem?  I need to generate autosequence in a repeated subform with alpha chars ('a)', 'b)', etc.) instead of numeric.  Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

this is not that difficult.

Assuming you have a repeatable subform names "SF" which contains a text field named "SFindex" then you can use the following script in the indexChange event of "SF".


var aChars = "abcdefghijklmnopqrstuvwxyz".split("");


SFindex.rawValue = this.index < aChars.length ? aChars[this.index] : "n/a";


View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

this is not that difficult.

Assuming you have a repeatable subform names "SF" which contains a text field named "SFindex" then you can use the following script in the indexChange event of "SF".


var aChars = "abcdefghijklmnopqrstuvwxyz".split("");


SFindex.rawValue = this.index < aChars.length ? aChars[this.index] : "n/a";


Avatar

Former Community Member

Thanks! That did the trick.