{
"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": "PDF",
"class": "ms-fontSize-24 ms-fontWeight-regular ms-fontColor-themePrimary",
"title": "PDF file"
},
"style": {
"flex": "none",
"padding": "0px",
"padding-left": "0px",
"height": "24px"
}
}
]
},
{
"elmType": "div",
"attributes": {
"class": "ms-fontColor-neutralPrimary ms-fontWeight-bold ms-fontSize-24"
},
"style": {
"box-sizing": "border-box",
"text-align": "left",
"padding": "21px 12px",
"overflow": "hidden"
},
"children": [
{
"elmType": "div",
"txtContent": "[$FileLeafRef]"
}
]
},
{
"elmType": "a",
"attributes": {
"class": "ms-fontColor-themePrimary ms-fontColor-themeDark--hover",
"title": "Fullscreen Preview",
"target": "_blank",
"href": "[$FileRef]"
},
"style": {
"border": "none",
"background-color": "transparent",
"cursor": "pointer",
"text-decoration": "none"
},
"children": [
{
"elmType": "span",
"style": {
"text-align": "center",
"display": "table-cell",
"vertical-align": "middle",
"font-size": "20px"
},
"attributes": {
"iconName": "OpenInNewTab"
}
}
]
}
]
}
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
Declarative list formatting
Developer environment
Windows
What browser(s) / client(s) have you tested
Describe the bug / error
Form formatting: In header section [$FileLeafRef], [$FileRef] coming blank
Steps to reproduce
Expected behavior
What Should Happen
Form header should display PDF icon, File name, Open in new tab icon

Open in new tab icon should be linked to file url using [$FileRef]
What Actually Happens
Form header is showing only two icons, it is not displaying file name using [$FileLeafRef]

Open in new tab icon href attribute does not have url, so clicking on this icon does not do anything