I have a form
<template name="form">
{{#autoForm id="afUpdateDemo" type=formType collection="Items" doc=selectedDoc autosave=autoSaveMode}}
{{> afQuickField name="title"}}
{{#unless autoSaveMode}}
<div class="form-group">
<button type="submit" class="btn btn-primary" disabled="{{disableButtons}}">Submit</button>
<button type="reset" class="btn btn-default" disabled="{{disableButtons}}">Reset Form</button>
</div>
{{/unless}}
{{/autoForm}}
</template>
I want this form to open in a modal window. So the modal should be active if selectedDoc
is not null. How can I do this? In the bootstrap doc, they only show how to activate a modal window through a link.
I have also found https://atmospherejs.com/yogiben/autoform-modals but it will also only get active through a link.