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
Bruno CardosoBruno Cardoso 

Using Images as options on selectRadio

I'm trying to use a list o images as options on my <apex:selectRadio>. However, the SelectOption constructor accepts only String as value.

Is there a way to achieve this on Visualforce, or is there really a limitation on this?

Best Answer chosen by Admin (Salesforce Developers) 
firechimpfirechimp

Hi Bruno,

You could try using the 'itemEscaped' attribute, if you set this to FALSE and put html content into the itemLabel it will not escape the content and will display as HTML in the page.

 

Click here for more info on apex:selectOption.

 

Hope this helps!