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
kumar Sanu 8kumar Sanu 8 

My Requrement is that, I have one picklist field that picklist having 12 values but i want to display only 5 field out of 12 on visualforce page using apex code ,i don't want to use record type . for that what i should do ? Please help me

Vinod ChoudharyVinod Choudhary
Hi Kumar,

I think You can achieve this by getting picklist value and create a list and Use Condition in for loop.

Ref: https://developer.salesforce.com/blogs/developer-relations/2008/12/using-the-metadata-api-to-retrieve-picklist-values.html

Hope This Will helps you.

Thanks
Vinod