Frage

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]"
          }
        ] 
      } 
    ]  
  } 
}
War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top