question

24359662 avatar image
0 Votes"
24359662 asked 24359662 answered

JSON formatter: Ctrl+Space for property/value suggestions is not working

When editing the JSON formatting code for a list most of the time value suggestion is not working:

Sometimes it shows only some of the options (e.g. missing "children" and "rowFormatter"):

94677-sk%C3%A6rmbillede-2021-05-07-103208.jpg

and sometimes it's just fubar:

94687-sk%C3%A6rmbillede-2021-05-07-102831.jpg


office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered MichaelHan-MSFT commented

Hi @Wassini ,

The "rowFormatter" property is shown in the suggestion, you may ignore it. For the "children", it supposed to in the "rowFormatter" property. As the below pictures show:

95143-image.png

95138-image.png


If you are using invalid properties as your second screenshot, the list will not change. I just use the below json to hide column header, and the list would change immediately:

 {
     "hideColumnHeader": true
 }


If an Answer is helpful, please click "Accept Answer" and upvote it.
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.




image.png (72.9 KiB)
image.png (17.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @24359662,

Is there anything update? If my reply helps you, you could mark it as answer.

0 Votes 0 ·
24359662 avatar image
0 Votes"
24359662 answered

I'm totally new into the this JSON formatting and I am a little confused as the documentation shows a simple example like this:

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

and apparently this is NOT allowed.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.