How can i hide the contactRole field?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Niclas K
    Junior Member
    • Dec 2021
    • 14

    How can i hide the contactRole field?

    When I create a new Contact, I can add an Account. This is where the Title field shows up, which is not needed.

    I tried looking at the Contact and Account Entity. That's where I found that the Title / contactRole field comes from the Account Entity. Now I looked at the Layout Manager and couldn't find a place where it was set. Same in the Contact Entity.

    Is it possible to delete / deactivate that field?
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hi,
    not on layoutManager

    this is this kind of view : "view": "views/fields/link-multiple-with-columns",

    you need change/add the view type to "view": "views/fields/link-multiple" in entityDefs.
    not sure, maybe in Account -> fields section -> contacts -> "view": "views/fields/link-multiple"

    clearcache, rebuild ..

    see : https://docs.espocrm.com/development...s/#field-views
    i think so :

    {
    "fields":
    {
    "contacts":
    {
    "view": "views/fields/link-multiple"
    }
    }
    }

    Last edited by item; 01-17-2022, 03:24 PM.
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    Working...