SharePoint: Displaying a Lookup Value in the Header on the Edit Screen

Tuncel Biyikli 20 Reputation points
2025-01-13T10:40:45.55+00:00

When I edit an item, I cannot see the lookup value in the header.

Here is my current JSON code:

{

"debugmode": "true",

"elmType": "div",

"attributes": {

    "class": "ms-borderColor-neutralTertiary"

},

"style": {

    "width": "99%",

    "border-top-width": "0px",

    "border-bottom-width": "1px",

    "border-left-width": "0px",

    "border-right-width": "0px",

    "border-style": "solid",

    "margin-bottom": "16px"

},

"children": [

    {

        "elmType": "div",

        "style": {

            "display": "flex",

            "box-sizing": "border-box",

            "align-items": "center"

        },

        "children": [

            {

                "elmType": "div",

                "attributes": {

                    "iconName": "DeveloperTools",

                    "class": "ms-fontSize-42 ms-fontWeight-regular  ms-fontColor-themePrimary",

                    "title": "Your icon"

                },

                "style": {

                    "flex": "none",

                    "padding": "0px",

                    "padding-left": "0px",

                    "height": "36px"

                }

            }

        ]

    },

    {

        "elmType": "div",

        "attributes": {

            "class": "ms-fontColor-neutralSecondary ms-fontWeight-bold ms-fontSize-24"

        },

        "style": {

            "box-sizing": "border-box",

            "width": "100%",

            "text-align": "left",

            "padding": "21px 12px",

            "overflow": "hidden"

        },

        "children": [

            {

                "elmType": "div",

                "txtContent": {

                    "operator": "+",

                    "operands": [

                        "Here i want see the Lookup Value:  ",

                        "([$lookupvalue])"

                    ]

                },

                "style": {

                    "height": "24px"

                }

            }

        ]

    }

]

}

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,053 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tuncel Biyikli 20 Reputation points
    2025-01-14T06:57:08.5233333+00:00

    Hi, thank you for your answer. Yes, I did. I think the reason it’s not showing is that this type of lookup value is not visible and configurable in the column configuration on the edit screen when I open the item. What do you think?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.