Can I customize result of a lookup field search?

For example, I want to see only the contact related with an account. This account is selected by another lookup. Only way that I find is to flag the checkbox all fields and insert the name of the account. Is there any way to automate this?



1 Answer 1


I am a little unclear whether you want to customize the fields displayed in the search result, or if you want to customize the lookup filter itself to get different search results.

If it is a matter of filtering the result, you need to do this as a Lookup Filter. You will modify this in the field parameters for the lookup field (in this case the Contact field). Here is an example of doing this for the standard Case object.

  • Case fields:
    • Account
    • Contact (Only where Contact.AccountId is same as Case.AccountId)

Lookup Filter for Contact field on Case

You can alternatively make this optional if you want the user to only be strongly urged in the direction of using the filter.

If the desire is to change which fields in Contact are displayed when you do the lookup search, you can do this in the Search Layout for Contact (Setup > Customize > Contacts > Search Layouts).

Contact Search Layouts

Here is the contact search layouts list. The Lookup Dialogs search layout is what you want to modify.

Move desired fields from left to right side

Here's how you pick which fields will appear.

And here is what it looks like in the end:

Lookup Dialog Search

These can be modified for any object that is allowed to be the related lookup or Master-Detail object in such fields. Custom object modifications are all found on their custom object page (Setup > Create > Objects > My_Custom_Object__c)

  • hi! do you know if can i to set the research in 'all fields' on the account name? when i check all fields in the research window and i enter the name of the account, it search this name only in the email field!
    – luciaS
    Jul 14, 2015 at 9:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .