Vulcan icon indicating copy to clipboard operation
Vulcan copied to clipboard

AutoForm displaying propertyName not propertySchema.label

Open jtolla opened this issue 11 years ago • 3 comments

I'm pretty sure I'm following the "Adding a field" instructions in the Custom Post Fields documentation correctly, otherwise I'd consider this a Stack Overflow customization question. So apologies in advance if I'm missing something straightforward. I'm trying to add a Post field like this:

var someProperty = {
  propertyName: 'somePropertyName',
  propertySchema: {
    type: String,
    optional: true,
    label: 'Some Property Label'
  }
}

addToPostSchema.push(someProperty);

This is what I get in the UI: screen shot 2015-01-17 at 4 21 37 pm

jtolla avatar Jan 17 '15 21:01 jtolla

Yes, that's a bug. Fixing it soon :)

On Sun, Jan 18, 2015 at 6:31 AM, Jay Tolla [email protected] wrote:

I'm pretty sure I'm following the "Adding a field" instructions in the Custom Post Fields documentation correctly, otherwise I'd consider this a Stack Overflow customization question. So apologies in advance if I'm missing something straightforward. I'm trying to add a field to add a Post field like this:

var someProperty = { propertyName: 'somePropertyName', propertySchema: { type: String, optional: true, label: 'Some Property Label' } }

addToPostSchema.push(someProperty);

This is what I get in the UI: [image: screen shot 2015-01-17 at 4 21 37 pm] https://cloud.githubusercontent.com/assets/1049166/5790438/3ca00718-9e66-11e4-8ed3-a6907e0cbbe3.png

— Reply to this email directly or view it on GitHub https://github.com/TelescopeJS/Telescope/issues/702.

SachaG avatar Jan 17 '15 23:01 SachaG

Ahh, ok. Glad I wasn't missing something. Thanks for all the excellent work wrt Telescope and the Meteor community!!

jtolla avatar Jan 18 '15 00:01 jtolla

Fixed in devel.

SachaG avatar Jan 20 '15 08:01 SachaG