Forum Discussion
SharePoint Online Modern Experience Multi-Line Field Display
As it stands right now, my "modern" experience lists cut off multi-line fields at about 4 lines. Is there a way to allow all of the lines to be visible for all items?
Thanks!
- Martin-CoupalSteel Contributor
Can try this. It will put a scroll. You can play with the max-eight
In the column formatting option:
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"debugMode": true,
"elmType": "div",
"children": [
{
"elmType": "div",
"txtContent": "@currentField",
"style": {
"padding":"11px 8px",
"max-height":"64px",
"overflow-y":"auto",
"align-items":"flex-start"
}
}
]
}- Carlos MontillaCopper Contributor
Martin-Coupal - Very slick!!!
Carlos Montilla You can also do it without the scroll. See post here https://thechriskent.com/tag/multi-line-text/
- I have already answered this on another thread...short answer: not currently and you will need to develop a SPFx Extension for this
- Abhi_PandyaCopper ContributorWould the SPFx Extension support multiline column with Enhanced Rich text in it?
- HobusCopper Contributor
What I found worked the best for me because I needed bullets was to:
1. In the settings for multiple lines of text change 'Specify the type of text to allow' to plain text
2. When I added text I couldn't use bullets I used - (which created a bullet but if I hit back space removed the bullet)
3. In the 'Column Fomatting:' I used Martin-Coupal code
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"white-space": "normal",
"padding": "11px 0"
},
"attributes": {
"class": "ms-fontColor-themePrimary"
}
}