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
jmarie1228jmarie1228 

Populate picklist values from a custom object?

I have accounts that are assigned to regions.  Each region is comprised of several countries.  I want to create a custom object to build the relationship between country, region name, region number.  These change periodically, so I don't want to hard code them in a picklist.  I've been looking through these sites and haven't seen where anyone is populating a picklist from values in a "table" (aka custom object).  Can this be accomplished?  Any help is greatly appreciated!
Thanks-
werewolfwerewolf
In this case what you would want to do is create a lookup relationship to your custom object rather than use a picklist.  I would recommend you turn on Lookup Auto-Complete in Setup->Customize->Search so that your lookup will act a little more picklist-y.
IrfanIrfan

I have a different case, I have hardcoded some values in a picklist in the starndard task object. I want to pick those values by query, any help ??

 

Thanks in advance,

Irfan Shahid.