How can I disable custom filters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abidoss
    Senior Member
    • Mar 2023
    • 230

    How can I disable custom filters

    Hello, can someone please help me? How can I create custom filters exclusively for portal users? Secondly, how can I hide the current filter list for portal users?
  • yuri
    Member
    • Mar 2014
    • 8452

    #2


    Use accessDataList. See JSON schema. "isPortalOnly": true.
    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

    • abidoss
      Senior Member
      • Mar 2023
      • 230

      #3


      "I used the following code:


      {
      "name": "renew",
      "style": "info",
      "isPortalOnly": false
      }


      However, the filter is still visible in the portal."​

      Comment


      • esforim
        esforim commented
        Editing a comment
        Shouldn't it be: isPortalOnly: true?

      • abidoss
        abidoss commented
        Editing a comment
        When I set it to 'true', the filter appeared for both the portal and the users."
    • rabii
      Active Community Member
      • Jun 2016
      • 1250

      #4
      it should be done as below

      PHP Code:
      {
      "name": "renew",
      "style": "info",
      "accessDataList": [
                     {
                          "isPortalOnly": true
                      }
       ]
      } 
      
      Rabii
      Web Dev

      Comment


      • esforim
        esforim commented
        Editing a comment
        Added to the unofficial wiki... been too long since I touch this
    Working...