AnsweredAssumed Answered

How to Hide button in the opportunity module menu with specific criteria (Sugar 7)?

Question asked by Nick Gamora on Sep 15, 2016
Latest reply on Sep 19, 2016 by Nick Gamora

I need lIke this js
({
    extendsFrom: 'RecordView',
    
    zipJSON: {},

 

    initialize: function (options) {
        app.view.invokeParent(this, {type: 'view', name: 'record', method: 'initialize', args:[options]});

 

        var salesStage = this.model.get('sales_stage'); // this is not work

         if (!(salesStage=='Verbal Conf')) {    
             $('a[name=test_form]').hide();
          }
    },  
})

Outcomes