Autoform and select dropdown population from subscription


#1

When using autoform, how can I populate my select dropdown list with the data from my subscription? I’ve got the right data already subscribed and I know how I’d populate that list without autoform, but with it I don’t know.


#2

According to the [demo][1]:

{{#autoForm id="types2" schema=typesSchema2}}
   {{> afFormGroup name="typeTest" type="select" options=optionsHelper}}
   <div class="form-group">
   <button type="submit" class="btn btn-primary">Submit</button>
   </div>
{{/autoForm}}

All you need to do is pass the optionsHelper after your subscription.
[1]: http://autoform.meteor.com/types


#3

Thanks, I don’t know why I didn’t notice that. :grinning: