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
Saurabh Kumar 42Saurabh Kumar 42 

How can we replace lookup option from name to any other field?

How can we replace lookup option from name to any other field? 
parth jollyparth jolly
This is not possible as lookup is the reference field and when you click on "Name" from the lookup dialog then in backend it returns the ID of the record.
 
Thanks
 
Ajinkya1225Ajinkya1225
Saurabh,

You cannot change the lookup from NAME to any other field. You have two options here-
  1. Either create a vf page and give the reference url to the respective record.
  2. Create a a vf page with standard controller and with just a lookup field and display that page as an inline vf page.
  3. You can create mini page layout to display more fields on mouse hover of lookup field.
Can you take a moment to  upvote and mark this answer as solved, if it helped you.
Cheers!
Ajinkya Deshmukh