Why Customize the SharePoint Edit Form?
SharePoint’s default edit form is functional but often lacks visual appeal and logical grouping, especially for lists with many fields. JSON-form formatting empowers you to.
- Improve usability by organizing fields into collapsible sections.
- Enhance aesthetics with icons, headers, and consistent spacing.
- Add functionality like help links or dynamic buttons.
In this article, you will learn to customize the header, body, and footer of the edit form popup using JSON. Let’s dive in.
Step 1. Enable JSON Customization for Your List.
- Navigate to your SharePoint list where you want to customize the edit form.
- Click on the “Add new item” button.
- In the form, click on the “Edit Form” option (top-right corner).

- Select “Configure Layout” from the dropdown.
- A panel will appear with three sections: Header, Body, and Footer.
- Choose the section you want to customize and paste your JSON code into the editor.
Step 2. Structure of JSON form formatting.
SharePoint Forms are divided into three sections.
- Header: Modify the form header to display a title, icon, or additional details.
- Body: Organize fields into sections for better readability.
- Footer: Customize the footer with buttons and actions.
Step 3. Customizing the Header.
The header appears at the top of the form. We can add.
The header appears at the top of the form, and we can customize it to enhance its appearance by adding an icon, title, or even a custom logo.
Adding an Icon in the header.
{
"elmType": "div",
"attributes": {
"class": "ms-borderColor-neutralTertiary"
},
"style": {
"width": "100%",
"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": "Onboarding",
"class": "ms-fontSize-42 ms-fontWeight-regular ms-fontColor-themePrimary",
"title": "Details"
},
"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": "= 'Employee Information of ' + [$Title]"
}
]
}
]
}
Where to make changes for popup form Appearance.
| Change Required | Modify This Part in JSON |
|---|---|
| Change Icon | "iconName": "Onboarding" (Replace with another Fluent UI icon) |
| Change Icon Size | “ms-fontsize-42" (increase/decrease number) |
| Change Icon Color | “ms-fontColor-themePrimary" (change theme color) |
| Change Header Background Color | Add “background-color” : “#F32F1” inside style |
| Change Title Text | Modify “txtContent”: “= 'Employee Information of ' + [$Title]" |
| Change Title Font Size | “ms-fontSize-24" (increase/decrease number) |
| Change Title Alignment | “text-align”: “left” ->” center” or “right” |
| Adjust Header Height & Spacing | Modify “height”, “margin-bottom”, “padding” |

How to select an Icon for the Header?
You can select any Fluent UI icon for your header. Follow these steps to get the correct icon name.
- Go to https://uifabricicons.azurewebsites.net/.
- Search for the icon you want.
- Right-click the icon and select “Copy Friendly Name”.
- Paste the copied name into the “iconName” field in the JSON above.



Join the conversation! Your thoughts help the community grow.