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
SFDC ROCKSFDC ROCK 

How to stop update picklist value for different record type

Hi All,

Suppose we have record type1 : values :a,b,c,d,e,f,g,h,i
                              record type2 : values:a,b,c,d,e,Z

from backend we are able to update Z value in record type1.

How can we stop that.
Can we use valdaition rule?
Thanks,
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi subodh,
How are you updating from backend using triggers or apex?Usually it wont allow you  to update with values which are not added to your record type and throws an error like bad value for restricted picklist field.

Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.

Thanks and Regards
Bhawana Mehta SFDCBhawana Mehta SFDC
Yea, I think you will have to set up vlidation rule to achaive this.