question

DB365-3161 avatar image
0 Votes"
DB365-3161 asked JerryXu-MSFT commented

Open List Item Panel - No JSON Formatting if Column is Hidden in List View

I have a list column (single line of text) that is formatted using JSON. The column is hidden in the list view. If I double-click on the item to view the details in the Open item panel, the column field has no JSON formatting. However, the column field is formatted correctly in the Details/Properties panel, and in the DispForm.aspx page.

If I add the column to the list view, the column is formatted correctly in the Open item panel. However, I don't want the column to be in the list view, as there are many columns.

This issue is consistent for different JSON element types (a, div, span, etc.).

Is this a known issue, and will it be addressed?

Windows 10 Enterprise Version 10.0.19042 (64-bit)
Browsers:
Microsoft Edge Version 89.0.774.57 (Official build) (64-bit)
Google Chrome Version 89.0.4389.90 (Official Build) (64-bit)

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.

1 Answer

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

Hi, @DB365-3161 ,

First I want to confirm about the DispForm.aspx page. Would you like to provide a screenshot of it ? As in modern experience we actually don't have a DispForm.aspx.

For the behavior, I can reproduce in my end. As long as the JSON formatting are referring to the column hidden (like using a if condition with that column), the JSON will not work when you open the item. And the column field is formatted correctly in the Details/Properties panel.

AFAIK, this is a by-design behavior. For now I am not sure if there is a workaround for it. If this action really bothers you, have a service request about it and see if the support team have an option for it.


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.

· 2
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, JerryXu.

Thanks for the confirmation. Not sure why this would be by design (i.e. intentional), though, because the formatting works in the other view methods? Perhaps there's a technical design limitation instead?

Regarding DispForm.aspx: this is a page I use to view the details of an item. It can be accessed by clicking on a lookup field item, or via the following location:
@currentWeb/Lists/ListName/DispForm.aspx?ID=ItemID

Regards,
Daniel

0 Votes 0 ·

Hi, @DB365-3161 ,

Alright, I know what you mean now. And I can see the formatting is working in the DispForm.aspx. I will try to get more information from my colleagues about this behavior. And still you can open a service request asking about this behavior.

0 Votes 0 ·