I’m not sure what I’m doing wrong, but when I hit submit, I’m getting a Match error.
Here’s the relevant code for the field that might be causing trouble:
{{> afQuickField name="interestedIn" options=products noselect=true}}
Schema block:
interestedIn: {
type: [String],
label: 'Which products are you interested in?',
optional: true
},
Helper:
Template.signup.helpers({
products: function () {
return Products.find().fetch().map(function (p) {
return {label: p.name, value: p.name};
});
}
});