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
Deepu sfdcDeepu sfdc 

picklist values in Visual force

I have custom object and one picklist field..which have 10 values..I want to display only 5 values in VF page..How can we achieve this ?
Thanks in Advance.
SidhantSidhant

Hi,

There are many ways, one could be described in SFDC blog: https://developer.salesforce.com/blogs/developer-relations/2008/12/using-the-metadata-api-to-retrieve-picklist-values.html

Thanks,

Kindly mark it as an answer if it works so that we can close the thread.