0
Ich habe folgendes Schema:Meteor - get Feldwert mit Autoform und Collection2
GuestSchema = new SimpleSchema({
name: {
type: String,
label: 'Name'
}
code: {
type: String,
label: 'Code',
autoValue: function(){
return AutoForm.getFieldValue('name', 'insertGuestForm');
},
autoform: {
type: 'hidden'
}
}
});
<template name="NewGuest">
<div class="new-guest">
{{> quickForm collection="Guests" id="insertGuestForm" type="insert" class="new-guest-form"}}
</div>
</template>
aber AutoForm.getFieldValue
funktioniert nicht wie erwartet. Ich möchte den Feldwert name
abrufen und mit der Eigenschaft code
in meiner DB speichern.