Announcement

Collapse
No announcement yet.

Remove 'Reject' action from Edit dropdown in Case Module

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

  • Remove 'Reject' action from Edit dropdown in Case Module

    Hi, I would appreciate any help with disabling or removing "Reject" action in Case module as per image attached.

    Thanks in advance
    Attached Files

  • #2
    Hi, you can do it with some basic coding:

    1) Create file: client/custom/src/views/case/record/detail.js and enter the following code:
    Code:
    define('custom:views/case/record/detail', 'crm:views/case/record/detail', function (Dep) {
    
        return Dep.extend({
    
            setupActionItems: function () {
                Dep.prototype.setupActionItems.call(this);
                this.removeButton('reject');            
            }
    
        });
    });
    2) Create file: custom/Espo/Custom/Resources/metadata/clientDefs/Case.json and enter the following code:
    Code:
    {
        "recordViews": {
             "detail": "custom:views/case/record/detail"
        }
    
    }
    3) Clear cache and rebuild.

    Comment


    • #3
      This worked brilliantly,
      Much appreciated

      Comment


      • telecastg
        telecastg commented
        Editing a comment
        You're welcome :-)
    Working...
    X