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
goabhigogoabhigo 

Related to Lookup field for contact

Hey all,

 I have a lookup for contacts in my custom object. I can select the contact name if I click on that lookup. If I want to select mobile number along with the name, what method should I use??

Any help will be greatly appreciated.

 

Thanks.

MVJMVJ

Are you just looking to display other fields for the user after the selected the contact?

 

If that is what you are trying to do then you want to create a custom formula field in your custom object.

 

When you do that you will be able to select the field from  the contact that you want to display.

 

Check out the help for cross-object formulas.

 

Good luck hope this helps.

 

Mike

 

goabhigogoabhigo

Thanks Mike. I have already done exactly as you suggested. 

I have a formula field(Mobile_Formula__c) in my custom object(Text_Message__c).

The formula is--- Contact__r.MobilePhone

 

Still mobile number is not selected through the lookup.

 

Actually when I save the record,it displays the mobile number when I click upon it(detail page). But I want the mobile number to be selected along with contact name while creating..

 

Any suggestions??

youcyouc

I don't think there is any 'method' to show other fields than object's name in lookup. If you really want to get it, then maybe add mobile number after the name text in the contact name field. It is tricky way.