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
Pavan 3636Pavan 3636 

Picklist Fields

Hi Guys,
 
I have a scenario where there are 2 different custom objects in which there are 2 picklist fields with the same values.
 
Q. When the values in object 1 are deactivated, then is it possible to deactivate or hide that particular value in the object 2 field.
 
please help me in which way it is possible..!!
 
Thanks in advance. 
Raquib SFRaquib SF
Hi Pavan,

Try this : https://developer.salesforce.com/blogs/developer-relations/2016/12/global-picklists-define-globally-use-locally.html

Global picklist should solve your issue. Its about defining the picklist values in one place and re-using it elsewhere.

Please let me know if it solves your issue.

Thanks!
Deepali KulshresthaDeepali Kulshrestha
Hi Pavan,


I have gone through your problem. 

Yes, it is possible. you can deactivate one object then another object is automatically deactivated. You can use a trigger.
You can write a trigger in the first object and deactivate first object fields then trigger automatically fire and second object 
fields are deactivated.


You can also refer below link:-
https://developer.salesforce.com/blogs/developer-relations/2016/12/global-picklists-define-globally-use-locally.html  



I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com