AnsweredAssumed Answered

Why do I have a create button at the top

Question asked by Kenneth Brill on Oct 17, 2018
Latest reply on Oct 18, 2018 by Prashant Patel

Using SugarCRM 8.0.0.  I have a link that opens a custom select list (with a filter), the code looks like this

 

linkRelatedTemplate: function () {
          var filterOptions = new app.utils.FilterOptions()
               .config({
                            'initial_filter': 'filterByClass',
                            'initial_filter_label': 'LBL_FILTER_BY_CLASS_TEMPLATES',
                            'filter_populate': {
                                 'brd_class_c': ['Template']
                            }
                       })
               .format();
          app.drawer.open(
               {
                    layout: 'multi-selection-list',
                    context: {
                         module: 's2s_brd',
                         filterOptions: filterOptions,
                    }
               }, _.bind(this.selectDrawerCallback, this));
     },

But when my drawer opens instead of an ADD button at the top I get a CREATE

 

My Select Screen

 

Does anyone know where I might start looking for the cause?

Outcomes