+ Start a Discussion

Lookup field

Hi All,


I have a custom controller and visualforce page. On that page I have to show lookup for selecting users which belongs standard profile only. I am able to generate lookup but it show users of all profiles. How can fix it?




Shashikant SharmaShashikant Sharma

You have to open a custom lookup page. Even filter lookup only works on native page layouts. So no other option for you. One easy way could be that you may allow ser to select any but before saving the data you can validate in contrlller class. But in this case you will not stop showing users other than of standard profile.


To create custom lookup page :

You can see this