Introduction
If you have a list with more than 10 columns, end users want to see the forms in an arranged manner. The fields should be arranged in group-wise, section-wise manner, should be easy to understand and find. This will make the forms UI user friendly, and users will feel engaged while feeling the forms.
How do you that? What options we must customize SharePoint online list forms?
Details
We can customize the list forms using PowerApps or using JSON formatting. Now how to decide which one to use?
If your requirement matches one of the below then go with PowerApps
- Very complex formatting
- Separate tabs with split forms
- Complex business logic
- Accordions or galleries
- External forms or data sources etc.
If your requirement matches one of the below then go with JSON formatting
- Simple formatting of header, body, rearrange fields in horizontal manner
- Show or hide fields, conditional visibility of fields, etc
- This is very lightweight option if you consider loading time and performance. If you use PowerApps customization it adds extra layer of authentication.
In this article we will look at how to format forms using JSON formatting.
Steps to format header
Navigate to your list -> Click on Edit form Icon -> Select Configure Layout option as shown below

Now select Header in “Apply formatting to” dropdown list -> Copy below sample JSON code in the box and click on Preview to see the changes

You can modify this JSON as per your need, can add more controls to it, change the text and icon easily. Refer this URL to find icons which you might want to use in your forms. Change the name of the icon in above JSON and it will reflect automatically.
Once the changes are done -> Click on Save. Close the windows, refresh list view -> click on new and check if your changes are reflected or not.
JSON Code for header formatting
{
"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": "HomeVerify",
"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": "='Details for ' + [$Title]"
}
]
}
]
}


Join the conversation! Your thoughts help the community grow.