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
Anu Raj.ax1269Anu Raj.ax1269 

contact lookup list only for related account


   I have a contact lookup so when i click on the lookup it opens a popup and i search for a particular contact. what i want is to restrict the result to display only contacts related to a account, for example in my case object i have account field i also have contact field when i click on the lookup of contact it should only show the contacts of the account, this is working on standard page but i want it on a VF, is this possible to have it on a VF page without coding. Do any body have any idea to do this. Please help me.




Jeff MayJeff May

If you use <apex:inputfield> or <apex:detail> on the VF page, the same lookup filters should apply to the field selector as on the standard UI.

ForceMantis (Amit Jain)ForceMantis (Amit Jain)

Can you post code that is not wokring?