Search code examples
meteormeteor-autoformsimple-schema

Setting label to false in schema not working


I'm trying to remove the label in schema. Every time I set it to false it errors or does nothing.

Schema.User = new SimpleSchema({
    classifications: {
        type: Schema.Classification,
        optional: true,
        label: false
    }
});

Solution

  • label is a string. Either set it to a string or omit it from your schema:

    Schema.User = new SimpleSchema({
        classifications: {
            type: Schema.Classification,
            optional: true
        }
    });