1

I've seen the question with no answer to this multi places. Hopefully someone knows the answer.

I have a list with a column of multiple checkbox selections displayed, but it returns each selection in a run on list, like this;

Option 1,Option 2,Option 3

I want it to display:

Option 1

Option 2

Option 3

1
  • Are you using SharePoint Online? If Yes, check my answer here and let me know if it works for you. Apr 17 '20 at 7:24
0

If you are using SharePoint Online then try using anyone of the below:

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

Reference: Organize multi-choice user inputs by separate line (not comma)

OR

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "children": [
    {
      "elmType": "div",
      "style": {
        "display": "block",
        "width": "100%"
      },
      "forEach": "choice in @currentField",
      "txtContent": "[$choice]"
    }
  ]
}

Reference: Rendering multi-value Choice fields vertically using JSON Column Formatting

Official documentation: Use column formatting to customize SharePoint

1
  • Hi @Duby, does this answers your question? If Yes, Please Upvote(^) and accept as an Answer so that it will help others in future to find the correct answer easily. May 15 '20 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.