How to change label of fileds in sidecar MultiSelectionListView js

Hi There,

I am working on to show sidecar fields based on some cases of one of our module. 

We are using below code : 

({
    extendsFrom: "MultiSelectionListView",
    allowedFields: ["anml_animals_ii_inventory_item_1_name","type_2","test_type_c","timepoint_type","collection_date"],
    initialize: function () {
        this._super("initialize", arguments);
        this.collection.reset();
    },
    render: function () {
        this._super("render", arguments);
        this.layout.$el.parent().addClass("span12 ii_specimen_selection");
    },
    addActions: function () {
        this._super("addActions");
        this.rightColumns = [];
        this.meta.panels[0].fields = _.filter(this.meta.panels[0].fields, function filterFields(field) {
            return this.allowedFields.indexOf(field.name) !== -1;
        }.bind(this));
    }
});

allowedFields are showing the label of fields based on the name given in studio, I would like to use the label name as a custom name for ex : 
type_2 field's original label is : Type 2 but i want to show this as : Speciment Type .
 
Please help me on this one.....
Parents Reply Children
No Data