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
pedrosampaiopedrosampaio 

Add picklist values to custom field

Hi

 

I want to dynamic add/remove picklist values in a custom field associated to a custom object.

 

Has anyone done some code on this?

 

Note that I don't want use the setup to do this.

 

 

Thanks.

 

Pedro

sfdcfoxsfdcfox

You'd want to use Visualforce, most likely. You can't directly manipulate picklist values in Apex Code, and it is a non-trivial matter to manipulate these values in Visualforce. For standard functionality, consider just using a lookup window instead.