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
TimJinSDTimJinSD 

Picklist with header and item values

Is it possible to have a picklist with values that are not selectable and sub values that are?  I've been searching the board and haven't seen an example of what I'm trying to do.

 

Example of picklist values:

 

Header1 (not a selectable value)

    Child1a

    Child1b

Header2 (not a selectable value)

    Child2a

    Child2b

 

thanks in advance,

 

Tim

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
sivaextsivaext

Hi 

 

I don't know what's your exact requirement.

 

my suggestion is

 

1.the easy option is use depedent picklists.

2. use picklist values like this

      

       Header1  -Child1a

       Header1 -Child1b

       Header2 -Child2a

       Header2-Child2b

3. if you want exact requirement, you need to build visualforce page with javascript or jQuery

All Answers

sivaextsivaext

Hi 

 

I don't know what's your exact requirement.

 

my suggestion is

 

1.the easy option is use depedent picklists.

2. use picklist values like this

      

       Header1  -Child1a

       Header1 -Child1b

       Header2 -Child2a

       Header2-Child2b

3. if you want exact requirement, you need to build visualforce page with javascript or jQuery

This was selected as the best answer
TimJinSDTimJinSD

Thanks sivaext.  That was exactly what I did after posting the question.  It gets the job done.

 

I figured I'd post the question to see if there was a not too complicated way to build it the way the spec requested. 

 

thanks,

 

Tim