SharePoint / SharePoint/sp-dev-docs

JSON Form formatting: Unable to use the calculated column value in header/footer layout customization

Open
#8,788 17 comments 2 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since Jul 7, 2025.

area:list-formatting sharepoint-developer-support type:bug-confirmed type:bug-suspected
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

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:

image

Steps to reproduce
  1. Create a simple calculated column in SharePoint list. For example using formula: =[Title]
  2. Open list form > Edit form > Configure layout > Header
  3. 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.