Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Subform auto-sequencing with alpha chars

sophiad9
Level 1
Level 1

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
radzmar
Correct answer by
Level 10
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
radzmar
Correct answer by
Level 10
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