Hi all,
[meteorbeginner]
I’m working with the meteor chef base code and I have made a form to add players to my players collection. (name, position, club, etc). I also want to fill an array field with integers in weekscores. How do I manage this from my form?
Here I try to fill only the first value (and that is not working) but I want to fill more than one value (30) all at once.
<FormGroup>
<ControlLabel>Weekscores</ControlLabel>
<FormControl
type="text"
name="weekscores"
defaultValue={ doc && doc.weekscores[0] }
placeholder="0"
/>
</FormGroup>