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
Anil JAdhav 14Anil JAdhav 14 

Dynamically adding values to picklist field?

If possible via Apex, the end user should be able to add a value to the picklist. The user should also be able to select the record type too so that that picklist value gets tagged to the record type selected. (Multiple record type selection should be possible). I know there is a tooling API that can do this, but not sure if we can call the API using Apex. Off course, if it is Apex then UI would be VF
DavidGantDavidGant
Anil,

I believe this is possible, but I would caution you against implementing this type of functionality. The goal of a picklist is to limit/standarize the values entered in a field. If users need to be able to enter any value thay want, then it is better to use a text field.