Microsoft Lists: Show more that 5 lines of text in view (Rich Text with images/links)

PhilFancy 41 Reputation points
2023-01-16T12:17:29.1333333+00:00

Hi,

text columns with multiple lines of text show only 5 lines in list view. The column in question is configured as rich text with all rich text features enabled (like images and hyperlinks).

So I added this JSON to make the list show all of the text contents:

{ "$schema": "https://developer.microsoft.com/json-...", "elmType": "div", "txtContent": "@currentField", "style": { "white-space": "normal", "padding": "11px 0" } }

This works fine for plain text. But we use rich text. Now there is a lot of <div>, <br> and <a href... shown in List view:
036b1457-834e-4893-82e4-2f8a926ece33

Has anyone an idea how to show the content of that column fully with html (hyperlinks, bold text and so on)?

Thanks in advance

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,230 questions
{count} votes

Accepted answer
  1. Jinwei Li-MSFT 4,736 Reputation points Microsoft External Staff
    2023-01-19T08:55:11.8833333+00:00

    Hi @PhilFancy,

    According to this Microsoft official article, multi-line text column with enhanced rich text is not supported within JSON column formatting.

    User's image

    Reference:

    Supported column types


    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.


1 additional answer

Sort by: Most helpful
  1. Jinwei Li-MSFT 4,736 Reputation points Microsoft External Staff
    2023-01-19T08:49:26.9133333+00:00

    Hi @PhilFancy,

    According to this official article, multi-line text column with enhanced rich text is not supported within JSON column formatting.

    Reference:

    https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting#supported-column-types:~:text=Multi%2DLine%20Text%20column%20with%20enhanceSupported column types


    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.

    0 comments No comments

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.