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
AkashAkash 

Regarding Picklist (selected) Value

hi,

I am facing a problem regarding picklist's selected value. I am not able to save the picklist's selected Value into a custom field
that is already created on an SObject. Please let me know any way or solution to get the ID or somthing so that i can save the picklist's selected value in my custom field.


regards,
Akash
jwetzlerjwetzler
It's hard to understand your problem without code but I think all you need to do is in your action method call myObject__c.myField = getValue(); where getValue() is the value attribute on your selectList.  If you're using an extension on the standardController you call getRecord() in your constructor to save off your sObject, then override the save method to set the field on the record, then delegate back out to the standardController's save action.