Adding google-places to embedded array in autoform?

Using:

aldeed:autoform
lukemadera:autoform-googleplace

i have an event document that takes multiple sub-events. This is easy enough with autoform. I just create the event schema, then create the sub-event schema. Then I nest the sub-event schema in the event schema as an array:

type: [sub-event]

autoform does the magic and adds the plus/minus buttons so users can add or delete sub-events as they please. It’s great.

The issue is, I would like the users to be able to add the address to each sub event using google-places input… how can I do this?

Normally it looks like the below, but how can I set type=“googleplace” class=“form-control” autocomplete=“off” from inside the schema so as to take advantage of the plus/minus feature?

{{> afQuickField name=“location” type=“googleplace” class=“form-control” autocomplete=“off”}}

I suggest reading the documentation for autoform.
And not everything have to be done by these “Quick” elements.
You mentioned word array in subject correctly.

I will read again but I don’t recall seeing this.

So it can’t be done? Should I be reading the docs again or not then?


and some selfswag :smiley: https://medium.com/@ShockiTV/how-i-tried-bootstrap-with-material-design-and-autoform-on-meteorjs-32333baad85f#.2mjzg7vru

Okay, so then the answer is:

Events = new Mongo.Collection("events");
Events.attachSchema(new SimpleSchema({
  title: {
type: [sub-event],
label: "Title",
autoform: {
afFieldInput: {
  options: function () {
return type:'googleplaces'
  }
  }
}));