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
Aki99Aki99 

Show susers of selected roles in the lookup field

Hi,

I have divided all my users into 2 roles (say role1 and role2)

M working with two objects obj 1 & users

a field named "role" in obj1 is getting its value using lookup to users object

But when i use the lookup i see the list of all available users

I want to restrict the list in the lookup to only the users assigned to role1

similarly i have another field in obj1 looking up to users for list of users with role2

How can i do this in my app

Best Answer chosen by Aki99
Vinita_SFDCVinita_SFDC

Hello,

 

This can be acieved by making use of Filtered lookup. Please refer following link and short video which how to setup filter on lookup:

 

http://www.youtube.com/watch?v=3I-qMR4vi8I

 

https://help.salesforce.com/HTViewHelpDoc?id=fields_lookup_filters.htm&language=en_US