Domanda

I need to show the description of column as a tooltip when a user hover a mouse on a column, I am doing this based on Adding custom hover text using json to a SharePoint list column

But I need to enter the description manually rather than reading the description of the column that I put earlier for that column in the Description textbox.

see below:

enter image description here

enter image description here

enter image description here

If I change "txtContent": "[$Description]", to "txtContent": "This is the desciption", it works fine, is there any way to fix the previous issue and get the description rather than entering a new description here as txt enter image description here

È stato utile?

Soluzione

Based on MS JSON reference guide at here, we should be able to show meta data in column formatting.

[!FieldName]

In column and view formatting, you can refer to any field's metadata by specifying the internal name of the field surrounded by square brackets and preceded by a exclamation mark: [!InternalName]. Currently field's display name is available in this metadata, and can be accessed using DisplayName property: [!SalesLead.DisplayName].

However, it didn't work for me for the Description. My testing worked for [!Project.DisplayName], but didn't work for [!Project.Description] (here, Project is a custom column).

Altri suggerimenti

As far as I know, there's no way to get the column description in JSON column formatting. You have to manually type the description in the json code.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top