Forum Discussion
SharePoint list Form footer formatting with JSON
- May 29, 2022
Narender I think this is what you are looking for - let me know if it works for you.
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", "elmType": "div", "style": { "display": "flex", "flex-direction": "column", "justify-content": "flex-start", "align-items": "flex-start" }, "children": [ { "elmType": "a", "txtContent": "Link A", "attributes": { "target": "_blank", "href": "https://microsoft.com/" } }, { "elmType": "a", "txtContent": "Link B", "attributes": { "target": "_blank", "href": "https://microsoft.com" } } ] }
Narender the response from PamDeGraffenreid will add each link onto a new line in your footer. If you want the links to be next to each other then use the following:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"style": {
"display": "block"
},
"children": [
{
"elmType": "a",
"txtContent": "Google ",
"attributes": {
"target": "_blank",
"href": "https://google.com"
}
},
{
"elmType": "a",
"txtContent": "Microsoft ",
"attributes": {
"target": "_blank",
"href": "https://www.microsoft.com/"
}
},
{
"elmType": "a",
"txtContent": "Oracle ",
"attributes": {
"target": "_blank",
"href": "https://www.oracle.com/"
}
}
]
}
Rob
Los Gallardos
Microsoft Power Automate Community Super User
RobElliott Rob, do you know how you would add spaces between those links? I was playing with it earlier and couldn’t get them in there.
- RobElliottMay 30, 2022Silver ContributorYou could lay them out across the footer with space between them by using display:flex as you originally had it but then change the justify-content to "justify-content":"space-between"
"style": {
"display": "flex",
"justify-content": "space-between"
}- NarenderMay 31, 2022Copper Contributor
Can we inset link in SharePoint List form body like below with JSON. I need three section in form
first will be "Please tag event name and Year" (Link should beside).
second section : details and third will be Others
Please need help in this please give me codes if possible . i am new to JSON formattingThanks for the help
- May 30, 2022Thank you!!