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
Snehal Gaware 15Snehal Gaware 15 

Based on account(lookup) selection on case, need to display values in picklist field

Hi
I have a requirement where I need to show values in picklist based on specific Account selection.
We have lookup field of Account on Case, where if user selects Account A , he will be only allowed to select value1,value3,value4 from product picklist.
if user selectes Account B, he will be only allowed to select value2,value5,value8 from product picklist
 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Snehal,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/157786/how-to-display-picklist-values-based-on-lookup-value-on-vf-page

https://salesforce.stackexchange.com/questions/187066/restrict-picklist-values-based-on-custom-lookup-fields-value

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Snehal Gaware 15Snehal Gaware 15
Hi Anas,

I have tried the solution provided by you but it is not working as expected. I have created validation rule on Case page layout.