1

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
    }
});
bp123
  • 3,217
  • 8
  • 35
  • 74

1 Answers1

1

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
    }
});
Stephen Woods
  • 4,049
  • 1
  • 16
  • 27
  • Yeh I want to stop it from printing `classifications` as a label when I access it like `{{> afQuickField name='profile.classifications.classification'}}` – bp123 Mar 22 '16 at 02:38
  • if you're looking to 'hide' the field in an AutoForm kind of form, then you need to add: `autoform: { type: "hidden" }` – MrE Mar 22 '16 at 03:07