How do I seperate values in multi choice sharepoint column

Heidi Weisman 1 Reputation point
2022-04-28T17:57:52.317+00:00

I have a Multi Choice Column in sharepoint and I want to separate each value and wrap text so it is not one long run on value

197437-image.png

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,395 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CaseyYang-MSFT 10,451 Reputation points
    2022-04-29T01:58:31.843+00:00

    Hi @Heidi Weisman ,

    You could use following JSON code to format this multi-choice column.

    1.Click your column > Column settings > Format this column

    197573-1.jpg

    2.Advanced mode > type following JSON code

    {  
       "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",  
       "elmType": "div",  
       "txtContent": "=join(@currentField, '\n')"  
    }  
    

    My test result:

    197510-3.jpg


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.