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
yao yaoyao yao 

How can I remove those unnecessary fields on contact lookup dialog?

I customized a field which lookup the standard object "Contact". I click the Magnifying Glass icon to lookup a contack, but i can not find any record, so I want to create a new contact on the spot, i clicked create button, then i can see lots of fields and majority of them are unnecessary. So how can I remove these unnecessary fields?
KaranrajKaranraj
Yao - You can't customize lookup dialog, you can't add or remove fields from that pagelayout and also validation rule or other reuquired fields validation won't fire when you create record from the quick create window. The only option is override the contact lookup window with new visualforce page with provides functionality to search and create contact records.

Check this blog post for sample custom lookup window using visualforce - http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/