Change "main field" in Leads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bdcitsolutions
    Member
    • Apr 2018
    • 79

    Change "main field" in Leads

    Hello everybody,

    we wanna change the main field of leads from "name" to "account name", so that the "account name" is shown in the detail view head (Leads >> 'Account Name') and in the "link parent" field after selecting the lead from elsewhere. How can we do that? At the moment, the link parent field also shows "name" per default.

    Best regards,

    Daniel
  • bdcitsolutions
    Member
    • Apr 2018
    • 79

    #2
    Hello,

    does anybody has an idea on how to change that? Thanks in advance, Daniel

    Comment

    • tanya
      Senior Member
      • Jun 2014
      • 4308

      #3
      Hi,
      do you need person name in Lead at all?

      Comment

      • bdcitsolutions
        Member
        • Apr 2018
        • 79

        #4
        Originally posted by tanya
        Hi,
        do you need person name in Lead at all?
        Yes, within each record definitely, but not in the header and in the link parent field.

        We wanna change this header
        Click image for larger version

Name:	Unbenannt2.PNG
Views:	565
Size:	6.9 KB
ID:	37379

        and the link parent entries
        Click image for larger version

Name:	Unbenannt3.PNG
Views:	577
Size:	4.5 KB
ID:	37377

        from "Name" to "Account Name"

        Click image for larger version

Name:	Unbenannt.PNG
Views:	314
Size:	9.0 KB
ID:	37376
        Attached Files

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #5
          You could try to override the method _getName() from /application/Espo/Modules/Crm/Entities/Lead.php

          Comment

          • bdcitsolutions
            Member
            • Apr 2018
            • 79

            #6
            Thanks a lot, this worked for us

            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #7
              better to inherit this class in custom/Espo/Custom/Entities/Lead.php and override this method (to make this modification upgrade safe)

              Comment

              Working...