Meteor Autoform Display E-mail Field -


i have created autoform update form populating contents of document. having difficult time getting autoform display email address stored in document.

<template name="edit_user_form">     {{#autoform schema=schema id="edit_user_form" type="update" collection=meteor.users doc=selected_user_doc}}         <fieldset>             {{> afquickfield name="profile.first_name"}}             {{> afquickfield name="profile.last_name"}}         {{> afquickfield name="emails"}}             {{> afquickfield name="status" options="allowed" noselect=true}}             {{> afquickfield name="roles" options="allowed" noselect=true}}             <div>                 <button type="submit" class="btn btn-primary">submit</button>                 <button type="reset" class="btn btn-default">reset</button>             </div>         </fieldset>     {{/autoform}} </template> 

as result, emails input field populated "[object object]".

since allowing 1 e-mail per user, correct way tell autoform populate form field e-mail address? thanks.

yes, in meteor accounts, emails considered array. can use this notation autoform github's issues:

{{> afquickfield name="emails.0.address"}} 

Comments