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
nav anav a 

get picklist values using controllers

I am having picklist with values as all country names starting from a to z .

But my client is having their business in 15 countries mainly for example america, india, japan,....

Here i need to get values of america, india, japan,... using controller and i need to display 1st picklist value as america and 2nd picklist value as India and 3rd picklist value as japan,....

I need to get values using controllers?? how can i do this??  I need to display all 15 country values 1st and all remaining 130+ countries values next.
venkat-Dvenkat-D
Create another picklist in the background for only those 15 countries or store those countries as comma separated values in label. Then put those into first picklist . Since you can add new countries in future to those 15, you should keep a placeholder to avoid code changes