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
MayankDkPantMayankDkPant 

Picklist values in Apex Code

Hi,

 

I have 4 picklist fields on my vf page. How can I retrieve values of these field when user clicks onsearch button.

 

Scenario:

I don't wan to  use Controller.getRecord() method. Is there any way I can access them. I tried ApexPages.CurrentPage.GetParameters.Get() method but that method is not working. Is there any thing else I can use for them.


Any help will be appreicated.

 

With Regards,

Mayank Pant.

 

 

sfdcfoxsfdcfox

You're going to have to use Controller.getRecord() at least once to get the record.