-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
area:list-formattingCategory: View, row & column formatting with JSONCategory: View, row & column formatting with JSONsharepoint-developer-supportsharepoint-developer-supportsharepoint-developer-supporttype:bug-confirmedConfirmed bug, not working as designed / expected.Confirmed bug, not working as designed / expected.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
Declarative list formatting
Developer environment
None
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
No response
Describe the bug / error
Unable to use the calculated column value in header/footer layout customization using JSON list formatting. Calculated column value can be used in column/view formatting.
The calculated column value is available in the page context but it is not shown in form header:
Steps to reproduce
- Create a simple calculated column in SharePoint list. For example using formula:
=[Title]
- Open list form > Edit form > Configure layout > Header
- Add JSON in below format and Save
{
"elmType": "div",
"txtContent": "='Value: ' + [$CalcPH]"
}
Expected behavior
Customized list form header/footer should show the calculated column value without any problem.
XueSheng-GIT and DeeJaWue
Metadata
Metadata
Assignees
Labels
area:list-formattingCategory: View, row & column formatting with JSONCategory: View, row & column formatting with JSONsharepoint-developer-supportsharepoint-developer-supportsharepoint-developer-supporttype:bug-confirmedConfirmed bug, not working as designed / expected.Confirmed bug, not working as designed / expected.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.