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
bs881026bs881026 

Users in the Same Profile, but need to see different picklist values in a field.

Hello, I have a scenario like there are 2 Users with the same profile, but different regions, there is a field where depending on the region of the user , the picklist values will differ. 
How to achieve this, please help. 
VinayVinay (Salesforce Developers) 
Hi,

Use record type and you can control picklist lov's based on record type and use permission set you give access to particular record type and assign it to user as per your requirement.

Review below links which gives you information on Record type.

https://help.salesforce.com/articleView?id=creating_record_types.htm&type=5
https://trailhead.salesforce.com/en/content/learn/projects/customize-a-salesforce-object/create-record-types
https://sfdcwisdom.com/record-types-in-salesforce/

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
Gaurav Sharma 472Gaurav Sharma 472
If profile is same,i would assume that record type would also be the same.
so different record type might not work.

Can you help me if both the fields (user region and dependent field) field are on same object?

If yes,you can make second field dependent picklist to be dependent on user region field.

If No, you can store dependency of these 2 fields in a custom metadata type.
Query custom metadata in apex controller and diplay dependent fields by filtering result based on region.