Forum Discussion
Header sharepoint forms
Hello, I would like to show the reference ('REF' column) in the header of my form sharepoint but I can't do it. This is a column of text.
Could you take a look and help me?
Below is the code used
{
"elmType": "div",
"attributes": {
"class": "ms-borderColor-themePrimary"
},
"style": {
"width": "99%",
"border-top-width": "0px",
"border-bottom-width": "2px",
"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": "RealEstate",
"class": "ms-fontSize-su ms-fontWeight-regular ms-fontColor-themePrimary"
},
"style": {
"flex": "none",
"padding": "0px",
"padding-left": "0px",
"height": "36px"
}
}
]
},
{
"elmType": "div",
"attributes": {
"class": "ms-fontColor-neutralSecondary ms-fontWeight-bold ms-fontSize-xl"
},
"style": {
"box-sizing": "border-box",
"width": "100%",
"text-align": "left",
"padding": "21px 12px",
"overflow": "hidden"
},
"children": [
{
"elmType": "div",
"txtContent": {
"operator": "+",
"operands": [
"Détail XXXXXXX ",
"[$REF]"
]
},
"style": {
"height": "24px"
}
}
]
}
]
}
2 Replies
- Rob_ElliottSilver Contributor
EiC4733 in my example below I've added a column, field_10, from my list showing the country of the selected airport as a subtitle using the following:
{ "elmType": "div", "attributes": { "class": "ms-bgColor-themePrimary ms-fontColor-white" }, "children": [ { "elmType": "div", "style": { "margin": "10px", "width": "100%", "border": "none", "padding": "10px", "display": "=if([$Title] == '' , 'none' , 'flex')", "flex-direction": "column" }, "children": [ { "elmType": "div", "txtContent": "[$Title]", "style": { "text-align": "left" }, "attributes": { "class": "ms-fontSize-28 ms-fontWeight-bold" } }, { "elmType": "div", "txtContent": "[$field_10]", "style": { "text-align": "left", "display": "=if([$field_10] == '' , 'none' , '')" }, "attributes": { "class": "ms-fontSize-16" } } ] } ] }Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)- EiC4733Brass Contributor
Thank you very much for your quick feedback,
I copied and pasted it and I just replaced your Filed_10 column with mine since I also have the existing Title column but I still can't display it

I also tried with another column without success.
I can get the subtitle but not the title