I have an automatically numbered text field:
var number = this.parent.index + 1
this.rawValue = "" + number;
I would like this to express as a, b, c, etc. instead of 1, 2, 3. Is that possible?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You could use ;
this.rawValue = String.fromCharCode(97 + this.parent.index);
where 97 is the character code for "a" ... so you would get into trouble if your had more than 26 fields.
Bruce
Views
Replies
Total Likes
Hi,
You could use ;
this.rawValue = String.fromCharCode(97 + this.parent.index);
where 97 is the character code for "a" ... so you would get into trouble if your had more than 26 fields.
Bruce
Views
Replies
Total Likes
Thanks! That works!
Views
Replies
Total Likes
Bruce - I have another problem now.
I have attached my form so you can take a look. I used your code for a repeating subform (detail) in a repeating subform (topic). So, details a, b, c, etc are created in topic1. I have the minimum set to 3, but it renders 4 (a, b, c, and d). Then, when I create subsequent instances of topic and add instances of detail, another instance shows up in the initial instance of topic.
Wow, that sounds complicated. It will make sense if you look at the form.
****NEVER MIND - I figured this out. I had the code in the initialize event somehow.*****
Views
Replies
Total Likes
Views
Likes
Replies