Meteor: Custom AutoForm with array of objects in afEachArrayItem blocks -


i'm working on dictionary app, , schema have nested structure.

articles (collection) -words (array of objects {"note", "word"} )  -translations (array of objects {"translation", "examples"} ) --examples (array of objects {"example", "translation"} ) means   examples of word usage it's translation.  

the {{> quickform collection=articles ... }} working fine, want change template , functionality conditions...

i tried use

{{#autoform collection=articles id="insertarticleform" class="article-form" }}         {{#afeacharrayitem name='words'}}             {{> affieldinput name=this.current.note placeholder='schemalabel' class="note"}}             {{> affieldinput name=this.current.word placeholder='schemalabel' class="word"}}             <button type="button" class="autoform-remove-item"><span class="glyphicon glyphicon-remove"></span></button>         {{/afeacharrayitem}}         <button type="button" class="autoform-add-item" data-autoform-field="words"><span class="glyphicon glyphicon-plus"></span></button> {{/autoform}} 

but doesn't work. looks old issue: meteor: custom autoform array of objects seems after recent updates of meteor/autoform, syntax doesn't work.... , author of plugin doesn't answer on issues months (

when changed {{> affieldinput name=this.current.note }} {{> affieldinput name='words.$.note' }} seems working , form appears need fields, nothing submit on server. in simple example, without nested fields...


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -