Expand my Community achievements bar.

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";