I have a SimpleSchema which includes an array of objects:
Things.attachSchema( new SimpleSchema({
name: {
type: String,
label: \"Name\",
To access the fields of the objects within the array, you can use:
this.current
So to fix the example given above, use:
{{#autoForm collection="things" id="myForm" }}
{{> afQuickField name='schemaName'}}
{{#afEachArrayItem name="fields"}}
{{> afFieldInput name=this.current.name}}
{{> afFieldInput name=this.current.amount}}
{{/afEachArrayItem}}
{{/autoForm}}
I don't know if this is the correct way to do this, but it seems to work.