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
nagalakshminagalakshmi 

Is there any way to display another field except name field in lookup after selecting

Hi,

Is there any way to display the another field  rather than name, after selecting the lookup. For example we have account, contact objects. If we select the account from contact, it will displays the name after selecting the account. I need to display the account number after selecting the account from contact.

 

Thanks,

Lakshmi

Nerd WhispererNerd Whisperer

Hi Lakshmi,

 

One way you could go about doing this is creating a new field for contacts with data type 'formula'.  Then just enter in the formula for the account number and you're all set. 

 

 

----------------------------------------------------------------

Need Help? Call 1-888-407-9578
or visit http://www.salesforcesuperheroes.com/

JitendraJitendra

Yes, It is possible.

Please go to Search layout and put your columns to display in lookup.

Read this URL :

http://login.salesforce.com/help/doc/en/customize_searchlayout.htm

nagalakshminagalakshmi

Hi,

 

Thanks for your replys.  I dont want to use the formula field. And by using search layouts just we are able to see that columns in look up dialogue box. I need to display the number rather than name of account. 

 

Thanks,

Lakshmi

JitendraJitendra

Hi Lakshmi,

 

There is no standard way to achieve this. You can create Custom Lookup, Custom component. And either create Custom controller to wrap all these or custom VF page.

 

For custom lookup, you can check the noce article by jeff:

http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/

Starz26Starz26

Thanks for that link....

 

There was a post in the comments that was very interesting:

 

Adding javascript to a section header title to manipulate the page.

 

Try it with one of your existing section headers but adding

 

<script>alert('Hello');</script>

 

The section has to have fields and be displayed. The script text is not displayed so you original header is left intact.

 

Neat!