Hey guys I’ve some problems with aldeed autoform: essentialy it doesn’t work at all. I mean that when I restart the page it’s blank if I have autoform or quick form declared in the code.
This is my code: I want to collect data and store them in my collection.
Here there is the account collector page with the form call:
<template name="account">
{{> pageHeading title='Account Details' }}
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
{{> insertDoctorForm}}
</div>
</div>
</template>
<template name="insertDoctorForm">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-lg-12">
<div class="text-center m-t-lg">
<div class="row">
<div class="ibox" style="text-align:left">
{{> quickForm collection="Doctors" id="insertDoctorForm" type="insert"}}
</div>
</div>
</div>
</div>
</div>
</div>
</template>
here there is the collection:
Doctors = new Mongo.Collection('doctors');
DoctorSchema = new SimpleSchema({
firstName: {
type: String,
label: "First Name"
},
lastName: {
type: String,
label: "Last Name"
},
personNumber: {
type: String,
label: "Person Number"
},
phone: {
type: String,
optional: true
},
address: {
type: Object
},
'address.street': {
type: String
},
'address.city': {
type: String
},
'address.state': {
type: String,
},
'address.postalCode': {
type: String,
label: "ZIP"
}
}, { tracker: Tracker });
Doctors.attachSchema(DoctorSchema);
My package file is this:
less
iron:router
twbs:bootstrap@3.3.5
fortawesome:fontawesome
zimme:iron-router-active
jquery
okgrow:router-autoscroll
meteor-base
mobile-experience
mongo
blaze-html-templates
session
tracker
logging
reload
random
ejson
spacebars
check
standard-minifier-css
standard-minifier-js
accounts-password
reactive-dict
aldeed:autoform
aldeed:simple-schema
aldeed:collection2
Can you help me?