You need to sign in to do that
Don't have an account?
StephenYS10000
Population of picklist using Apex code
Is it possible to populate the picklist using Apex code from a class or a trigger?
I appears that it can be done using the Salesforce API but I can't find any examples where this can be done directly in Salesforce using the native apex code.
Thanks
Stephen
All Answers
You can populate a picklist field simply by assigning the picklist value string to the field.
How would I use this in context of populating a field picklist then?
Here is the working code for you:
VisualForce Page :
Controller :