Activity Forums Salesforce® Discussions How to display comma seperated values in list view visualforce not string ?

  • How to display comma seperated values in list view visualforce not string ?

    Posted by Vijay on February 11, 2021 at 8:25 am

    please any one help.
    i have a textarea fields where records saved like hello,hai,how . i need to display values in vf page in list view

    Mayra replied 1 year, 6 months ago 3 Members · 2 Replies
  • 2 Replies
  • Aditya

    Member
    February 23, 2021 at 6:56 am

    / a list of string, you wanna display
    List<String> tempLst = new List<String>{'Lee','Jeff','Dogules','Alok'};
    // making a single string with comma seprated from above list
    String commaSepratedList='';
    for(String str : tempList)
    {
    commaSepratedList += str + ',' ;
    }
    // remove last additional comma from string
    commaSepratedList = commaSepratedLis.subString(0,commaSepratedList.length());
    system.debug('comma seprated list is----> '+commaSepratedList);

  • Mayra

    Member
    October 29, 2022 at 11:29 am

    To display comma seperated values in list view visualforce not string, here are few solutions mentioned over here, please refer https://dfc-org-production.my.site.com/forums/?id=906F000000091npIAA&language=en

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos