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,203 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 23,666 Reputation points Microsoft Vendor
    2025-01-16T07:37:27.73+00:00

    Hi @Tuncel Biyikli,

    Thanks for your reply and I understand what you mean. You want the additional lookup columns to show in the edit form, right? This is by design and I'm afraid it is also impossible to show those additional lookup columns using JSON formatting.

    As a workaround, click Integrate >> Power Apps >> Customize forms.

    User's image

    Save and publish the form directly in the Power Apps page. Then the additional lookup fields will appear in the edit form.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    1 person found this answer helpful.

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.