SharePoint List - Would it be possible to change column name via JSON or Internal/display name, so that output in a custom body can look cleaner?

Daniel889 20 Reputation points
2023-10-20T18:01:22.8166667+00:00

Hello, i am using JSON to format my custom body for new item/elements in a SharePoint list, under is an example that is the same as my custom body that works now.

Is it possible to change the name "Department" in the custom body inside the Json body code as shown? I tried also to use the internalname instead of the Display Name in the list, but it didnt work either.

Anyone know if this is possible? i would like to keep the column name, just have another name in the custom body so the text and struture will look cleaner for the user that will type inn information into the sharepoint list.

DepartmentJson

Hope i describe this as people understand, or i will try again:)


{ 
    "sections": [ 
        { 
            "displayname": "", 
            "fields": [ 
                "Title" 
            ] 
        }, 
        { 
            "displayname": "Details", 
            "fields": [ 
                "Department", 
                "Email", 
                "Country" 
            ] 
        }, 
        { 
            "displayname": "Application", 
            "fields": [ 
                "Application Id", 
                "Approver", 
                "Reviewer" 
            ] 
        } 
    ] 
}
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2023-10-23T03:17:22.9466667+00:00

    When using JSON codes to customize the list form body with one or more sections consists of some columns, JSON codes reference columns here by using their internal name.

    In fact, what you pointed out in the picture below is the display name of Department column.

    DepartmentJson

    So, it is not possible to keep the display name of Department column and have another name in the customized list form body at the same time.

    The only way to change column name in the custom list form body is to change the column display name.

    1.Select the Department column -> Column settings -> Edit.

    1

    2.JSON codes.

    2

    User's image

    3.Result.

    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.

1 additional answer

Sort by: Most helpful
  1. Daniel889 20 Reputation points
    2023-10-25T08:47:18.9333333+00:00

    Hello! Thank you for answer, to do what i wanted to do, i have to use Power Apps in SharePoint List instead of JSON. Thanks for help!

    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.