@@ -67,7 +67,7 @@ Schemas.Posts = new SimpleSchema({
6767 afFieldInput: {
6868 type: ' fileUpload' ,
6969 collection: ' Images' ,
70- uploadTemplate: ' uploadField' // <- Optional
70+ uploadTemplate: ' uploadField' , // <- Optional
7171 previewTemplate: ' uploadPreview' // <- Optional
7272 }
7373 }
@@ -84,9 +84,9 @@ Generate the form with `{{> quickform}}` or `{{#autoform}}` e.g.:
8484##### Insert mode:
8585
8686``` html
87- {{> quickForm collection="Posts" type="insert"}}
87+ {{> quickForm id="postsInsertForm" collection="Posts" type="insert"}}
8888<!-- OR -->
89- {{#autoForm collection="Posts" type="insert"}}
89+ {{#autoForm id="postsInsertForm" collection="Posts" type="insert"}}
9090 {{> afQuickField name="title"}}
9191 {{> afQuickField name="picture"}}
9292 <button type =" submit" class =" btn btn-primary" >Insert</button >
@@ -97,11 +97,11 @@ Generate the form with `{{> quickform}}` or `{{#autoform}}` e.g.:
9797
9898``` html
9999{{#if Template.subscriptionsReady }}
100- {{> quickForm collection="Posts" type="update" doc=getPost}}
100+ {{> quickForm id="postsUpdateForm" collection="Posts" type="update" doc=getPost}}
101101{{/if}}
102102<!-- OR -->
103103{{#if Template.subscriptionsReady }}
104- {{#autoForm collection="Posts" type="update" doc=getPost}}
104+ {{#autoForm id="postsUpdateForm" collection="Posts" type="update" doc=getPost}}
105105 {{> afQuickField name="title"}}
106106 {{> afQuickField name="picture"}}
107107 <button type =" submit" class =" btn btn-primary" >Update</button >
0 commit comments