function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sohail najmisohail najmi 

show city OR state field other then name in Lookup

User-added imageI have lookup field name 'Courier Service' with default lookup showing name(here auto-number). But i want to show field other than name. 

How this is going to be ?? 

Thanks in Advance. 

 
Malika Pathak 9Malika Pathak 9
Hi Sohail,
    
Greetings!

In Lightning,
1. Goto Setup -> Object Manager.
2. Select 'Courier Service'.
3. Select 'Search Layouts' from left panel.
4. Now, Edit 'Default Layout'.
5. Then Add 'Available Fields' which you want to display. (Name must be the first field in the search layout)
6. Save.

Now, you will able to see other fields while selecting lookup record.

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Malika Pathak
Gabriel RibeiroGabriel Ribeiro
Malika, is there a way to search the records by other fields than Name? Thanks in advance.
Christopher Bahr 4Christopher Bahr 4
@sohail did you ever find out how to change the displayed field for the lookup? I know it's possible to show more than 1 field because I have a look up that shows 2 fields but I'm not sure how it got that way or how to change it.