meteor autoform string array shows empty field -
i make edit form collection, has array fields 'phones', each element string when trying make afarrayfield field shows block 1 empty string
schema:
{phones: {type: array, mincount: 1, label: "phones numbers"}, {"phones.$": {type: string} }
template:
{{> afquickfield name="phones" value=phones}}
in object array 'phones' presented
i've following:
phones: { type: [string], mincount: 1, label: "phones numbers" }, 'phones.$': { autoform: { affieldinput: { type: 'text' } } }
template helper
template.home.helpers({ doc: {phones: ['09988765', '0998776']} // should come db.findone })
in template:
{{#autoform id='test' schema="schema.array" type="update" doc=doc}} {{> afquickfield name="phones" value=doc.phones}} {{/autoform}}
i'm having this:
i've following package dependencies:
meteor-platform standard-app-packages iron:router iron:layout aldeed:collection2 aldeed:simple-schema aldeed:autoform nemo64:bootstrap less accounts-base accounts-password
Comments
Post a Comment