Hiden default massAction in specific entity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johnykafka
    Junior Member
    • Jun 2022
    • 9

    Hiden default massAction in specific entity

    How can i hiden some actions in the specific entity?

    according to the picture I the entiy.
    When i create entity the actions will be created by default.
    I want to remove Mass update and export.

    I can add more action like the image below "test" but i cannot find out how to hidden default action.

    I tried searching in the clientdef folder products.json but couldn't find any lines that define show those actions.
  • rabii
    Active Community Member
    • Jun 2016
    • 1264

    #2
    try to make it as empty array and see if it works.

    Code:
    "massActionList" : [ ]
    I have not tested this but worth testing
    Rabii
    Web Dev

    Comment

    • yuri
      Member
      • Mar 2014
      • 8624

      #3
      To disable in back-end (no ability to perform via API call):

      metadata > recordDefs > {YourEntityType}

      https://docs.espocrm.com/development...s/#massactions

      Set
      Code:
      "disabled": true
      for all actions.

      To disable the export action in frontend:

      metadata > clientDefs > {YourEntityType}

      HTML Code:
      "exportDisabled": true
      There's no ability to remove the mass-update action from UI w/o defining a custom record/list view for your entity type.


      Last edited by yuri; 06-15-2022, 07:44 PM.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      Working...