Enforce limitations on Standard Picklist Values To Adhere To The Specified Set in Salesforce By Utilizing Apex Triggers.
Sample Code: Here is the sample code for the trigger – Restrict Standard Picklist values such as Opportunity Type and Lead Source fields in the Opportunity object, using an Apex Trigger – “ValidatePicklistValues”.