You need to sign in to do that
Don't have an account?
Rick SF Admin
How to display selected multi-picklist values as a vertical list on a visualforce page
I've created a VF page and I'm trying to get the selected multi-picklist values to display as a vertical list opposed to a single string.
Selected values are displaying as "Value1; Value2; Value3". I would like the values in a list with bullets.
I found a a forum with this same issue but its not working for me. - https://developer.salesforce.com/forums/?id=906F0000000BGyzIAG
Here is the code that I am using.
Selected values are displaying as "Value1; Value2; Value3". I would like the values in a list with bullets.
- Value1
- Value2
- Value3
I found a a forum with this same issue but its not working for me. - https://developer.salesforce.com/forums/?id=906F0000000BGyzIAG
Here is the code that I am using.
<td> <apex:outputField value="{!Employee_Profile__c.Professional_Certifications__c}"> <p id="demo"></p> </apex:outputField> </td> <script> var myString = '{!Employee_Profile__c.Professional_Certifications__c}'; var res = myString.replace(new RegExp(';', 'g'), '<br/>'); document.getElementById("demo").innerHTML =res; </script> </table> </apex:page>
Below is the piece of code. Please try this, it is working fine my Org.
Screenshot :
Hope it Helps you. Please mark this as solved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.
Regards ,
Suraj
<apex:page standardController="Employee_Profile__c" renderAs="pdf">