+ Start a Discussion
MTBRiderMTBRider 

Conditional formatting of SelectOptions

Has anyone put conditional formatting on the individual selectOptions values?  

 

I have a pop that allows assignment of cases to queues or the members of the queues.  The users selects a radio button for the queue or the user they want the case assigned to.  It is displayed in a kind-of tree like structure like so:

 

Queue 1

- Member 1

- Member 2

Queue 2

- Member 1

....

 

I would like to format the font of Queues different from the font of members so that it is easier to distinguish.  Cannot figure out how to do it either when the SelectOption list is being built in the page controller or in the visual force page.  Has anyone done this?  Thanks.

crop1645crop1645

MTBRider - I've seen a couple of folks do this: http://www.fishofprey.com/2012/12/applying-css-to-visualforce.html

MTBRiderMTBRider

Hey Eric -

 

Thanks for the reply.  It was not quite what I was looking for, but it did serve to jiggle the hand a bit and I remembered about using setEscapeItem with SelectOption and just embedded formatting tags in the label for the selectOptions.  That did the trick.  

 

 

crop1645crop1645

Great!