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”}}