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

Help with displaying Multi Select Picklist on Visualforce email

Currently I have visualforce email template returning the values of mult select picklist.

The returned values display as: WidgetA;WidgetB;WidgetC

How can I them display as: WidgetA, WidgetB, WidgetC  (with a comma and space opposed to a semi-colon and now space)

Thanks in advance!


kevin lamkevin lam
<apex:outputText value="{!SUBSTITUTE(relatedTo.[multi select picklist field], ';', ', ')}"/>

I just tried this and it worked.
Simon WhightSimon Whight
To jump on the back of this, is there a way you can display only one of the values? Or perhaps get it so each item goes on a separate line?