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
ArupArup 

How to override look up window in VF

How can I  override the look up window for custom object in visualforce page so that I can wrtite some SOQL query to retrieve the values from another table or field dynamically through look up window. Please Give ths code.

bob_buzzardbob_buzzard

I've written a couple of blog posts on this topic:

 

http://bobbuzzard.blogspot.com/2010/09/visualforce-lookup.html

http://bobbuzzard.blogspot.com/2011/02/layered-visualforce-lookup.html

 

These should get you started.

Shashikant SharmaShashikant Sharma

If you are using standard page layout to show the lookup field then you can not achieve this. Yes but definitly you can use lookup filter feature is you want only some filtered records.