I defined an autoform label property in my schemas:
choices : {
type: [String],
label: 'Choices',
minCount: 4,
maxCount: 4
},
'choices.$' : {
type: String,
autoform: {
afFieldInput:{
label: function(){
return this.name.charAt(this.name.length-1);
}
}
}
}
And the label property is correctly added to each input
when I create it using afArrayField
However, there is, as you can see, still no label next to each text box.
Could someone please help me with showing the label for each form based on the index it is in the array? I just want the textboxes to be numbered and there will only ever be exactly 4 of them if that helps.
Here is the MeteorPad: http://meteorpad.com/pad/MM7QxC3ii9opMMh2c/Auto-from%20Label
Thank you =)