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
CageMMACageMMA 

How to select the first value in multi-select??

Hi:

   I have a multiselect picklist field and in apex, I need to prepopulate the first value that is in the Multi-select picklist...

But I do not know the tag that would do it...

Can anyone help

Example:

Field Name: Compliance

Values:

B

C

A

I would like the first value selected "B" to prepopulate a text field...

Thanks

Z

bob_buzzardbob_buzzard

I'm slightly confused about your requirement here - are you trying to set the value for a picklist field or use the chosen value to populate another field?  Are you using this in a visualforce page?