SOLVED

Multiline column turn off wrap text

Brass Contributor

I have a column of multiline text because some needs are longer than the 255 single line limit. The problem is I only need the data for some other operations and it makes the row very tall. Is there a way to turn off the wrap text for that column?

3 Replies
Not possible?

Thanks
best response confirmed by SG523 (Brass Contributor)
Solution

@SG523 there isn't a setting for it but you can format the column with JSON to remove the wrap and just display the first line:

 

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "div",
  "txtContent": "@currentField",
  "style": {
    "white-space": "nowrap"
  }
}

 

Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

That worked perfect, thank you!
1 best response

Accepted Solutions
best response confirmed by SG523 (Brass Contributor)
Solution

@SG523 there isn't a setting for it but you can format the column with JSON to remove the wrap and just display the first line:

 

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "div",
  "txtContent": "@currentField",
  "style": {
    "white-space": "nowrap"
  }
}

 

Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

View solution in original post