0

I just found out I cannot use "Newsletter style" for my FAQ lists in a modern site. If I use that the entire site will switch between classic and modern style. So I am trying some list formatting with JSON.

The problem is that the answer column is not displaying properly. The thing is that this field could contain pictures and tables, etc so I just want the JSON to take the contents and display all of it, and skip displaying div information.

How can I adjust the display of the answer so it just displays the contents?

enter image description here

  "schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
  "hideSelection": true,
  "hideColumnHeader": true,
  "rowFormatter": {
    "elmType": "div",
    "attributes": {
      "class": "sp-row-card"
    },

    "children": [
      {
        "elmType": "div",
        "style": {
          "text-align": "left"
        },

        "children": [
          {
            "elmType": "div",
            "attributes": {
              "class": "sp-row-title"
            },

            "txtContent": "[$Title]"
          },

          {
            "elmType": "div",
            "attributes": {
              "class": "sp-row-listPadding"
            },
            "txtContent": "[$Answer]"
          }
        ] 
      } 
    ]  
  } 
}

1 Answer 1

0

Multi-Line Text column with enhanced rich text is currently not supported in SharePoint online JSON formatting.

The following column types are not supported currently:

  • Managed Metadata
  • Filename (in Document Libraries)
  • Retention Label
  • Sealed columns
  • Multi-Line Text column with enhanced rich text

Microsoft official reference: SharePoint Online JSON formatting - Supported column types

3
  • Oh, no! Lists are perfect for FAQs, but maybe I have to convert all my list items to pages then...
    – Gunilla
    Commented Oct 29, 2020 at 14:02
  • 1
    Yes. If you have fixed number of questions then you can create pages for each question and then link the pages with list item. So whenever you will click on json formatted question it will redirect you to particular question page. Commented Oct 29, 2020 at 15:03
  • I tried and It does not seem to work with 'plain' rich text either (even though it is not listed in the 'not supported list').
    – Gunilla
    Commented Oct 30, 2020 at 9:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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