JSON Header Formatting SharePoint list – Subheading
Hi
I have a SharePoint list form, and I have been asked to add “Something small in the header to say ‘For Internal Use Only'”
I am struggling to change the JSON to add a subheading. Can anyone advise?
{
“elmType”: “div”,
“attributes”: {
“class”: “ms-borderColor-Green”
},
“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”,
“background-color”: “#13A10E”
},
“children”: [
{
“elmType”: “div”,
“style”: {
“display”: “flex”,
“box-sizing”: “border-box”,
“align-items”: “center”
},
“children”: [
{
“elmType”: “div”,
“attributes”: {
“iconName”: “Page”,
“class”: “ms-fontSize-42 ms-fontWeight-regular ms-fontColor-#0C0C0C”,
“title”: “Details”
},
“style”: {
“flex”: “none”,
“padding”: “0px”,
“padding-left”: “0px”,
“height”: “36px”
}
}
]
},
{
“elmType”: “div”,
“attributes”: {
“class”: “ms-fontColor-#0C0C0Cy 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”: “= [$Title] + ‘ PID ‘”
}
]
}
]
}
Thanks if anyone can help
Conn
Hi I have a SharePoint list form, and I have been asked to add “Something small in the header to say ‘For Internal Use Only'” I am struggling to change the JSON to add a subheading. Can anyone advise? {
“elmType”: “div”,
“attributes”: {
“class”: “ms-borderColor-Green”
},
“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”,
“background-color”: “#13A10E”
},
“children”: [
{
“elmType”: “div”,
“style”: {
“display”: “flex”,
“box-sizing”: “border-box”,
“align-items”: “center”
},
“children”: [
{
“elmType”: “div”,
“attributes”: {
“iconName”: “Page”,
“class”: “ms-fontSize-42 ms-fontWeight-regular ms-fontColor-#0C0C0C”,
“title”: “Details”
},
“style”: {
“flex”: “none”,
“padding”: “0px”,
“padding-left”: “0px”,
“height”: “36px”
}
}
]
},
{
“elmType”: “div”,
“attributes”: {
“class”: “ms-fontColor-#0C0C0Cy 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”: “= [$Title] + ‘ PID ‘”
}
]
}
]
} Thanks if anyone can helpConn Read More