Announcement

Collapse
No announcement yet.

Hide create button in list-small view

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hide create button in list-small view

    Hello,

    How to hide create button in list- small view?

    Please help.

    Thanks,


  • #2
    Hi
    set createButton false in view definition
    http://forum.espocrm.com/forum/devel...s-to-quoteitem
    http://forum.espocrm.com/forum/devel...ist-for-entity

    Comment


    • #3
      Ok. Tanks Tanya

      Comment


      • #4
        I set createButton: false, in the client/custom/src/views/entity/record/list.js but it doesn't disable the button, and i dont see anywhere else where there is a createButton my code is:
        Code:
        Espo.define('custom:views/claims/record/list', 'views/record/list', function (Dep) {
        
            return Dep.extend({
        
                rowActionsView: 'custom:views/claims/record/row-actions/default',
        
                actionFileManager : function (data) {
        
                    this.showModal(data);
                },
        
                showModal: function(data){
                    var contactName = data.name || 'Contact Name';
                    this.createView('showFileManager', 'custom:views/contact/modals/filemanager', {
                        scope: this.scope,
                        createButton: false,
                        data: {
                            contactName: contactName,
                            claimLastSNN: data.claimlastsnn,
                            claimNumber: data.claimnumber
                        }
                    }, function (view) {
                        view.render();
                        view.notify(false);
                        //view.close();
                    }.bind(this));
                }
        
            });
        
        });
        Please help!

        Comment

        Working...
        X