web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SharePoint Form Format...
Power Apps
Answered

SharePoint Form Formatting with JSON.

(0) ShareShare
ReportReport
Posted on by 215

Hi 

I am formatting sharePoint List  with JSON . I want Add to links to the footer . I am new to JSON. so i am able to add One link with JSON like below code. How can i add another link to the form footer 
Below is the code : 
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "a",
"txtContent": "Google",
"attributes": {
"target": "_blank",
"href": "https://www.google.com/"
}


I want to show two links in footer . 

Thank you 
Narender G

Categories:
I have the same question (0)
  • Waegemma Profile Picture
    583 Super User 2024 Season 1 on at

    Hi @ursNani ,

     

    I'm not really familiar with JSON formatting but using 

    How to Use JSON to Customize a SharePoint List Form (mrsharepoint.guru)

    I came up with:

     

    {
    "elmType": "div",
    "style": {
    "width": "100%",
    "text-align": "left",
    "overflow": "hidden",
    "border-top-width": "1px"
    },
    "children": [
    {
    "elmType": "div",
    "style": {
    "height": "15px",
    "width": "100%",
    "color": "#fff",
    "font-size": "13px",
    "border-top": "5px solid #eee",
    "background-color": "orange",
    "padding": "10px"
    },
    "children": [
    {
    "elmType": "a",
    "txtContent": "Google",
    "attributes": {
    "target": "_blank",
    "href": "https://www.google.com/"
    }
    },
    {
    "elmType": "a",
    "txtContent": "DuckDuckGo",
    "attributes": {
    "target": "_blank",
    "href": "https://www.duckduckgo.com/"
    }
    }
    ]
    }
    ]
    }

     

    As I say: no expert here. Formatting the links so they don't stick together is something I haven't mastered yet 🙂

     

    Marc

  • ursNani Profile Picture
    215 on at

    @Waegemma 

    Thanks for the help . Its work perfectly . but i want to space them between. Can we do that 

    Thank you 

  • ursNani Profile Picture
    215 on at

    @Waegemma 

    Thanks for the help . Its work perfectly . but i want to space them between. Can we do that 

    Thank you 

  • Verified answer
    Waegemma Profile Picture
    583 Super User 2024 Season 1 on at

    Hi @ursNani ,

     

    I looked at https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json

    and the HTML-tags you can use are:

     

    "enum": [
     "div",
     "button",
     "span",
     "a",
     "img",
     "svg",
     "path" 

      so something like <nav>, which would be perfect, cannot be used...

     

    However, I came up with this:

     

    {
     "elmType": "div",
     "style": {
     "width": "100%",
     "text-align": "left",
     "overflow": "hidden",
     "border-top-width": "1px"
     },
     "children": [
     {
     "elmType": "div",
     "style": {
     "height": "15px",
     "width": "15%",
     "color": "#fff",
     "font-size": "13px",
     "border-top": "5px solid #eee",
     "background-color": "orange",
     "padding": "10px"
     },
     "children": [
     {
     "elmType": "a",
     "txtContent": "Google",
     "attributes": {
     "target": "_blank",
     "href": "https://www.google.com/"
     }
     }
     ]
     },
     {
     "elmType": "div",
     "style": {
     "height": "15px",
     "width": "15%",
     "color": "#fff",
     "font-size": "13px",
     "border-top": "5px solid #eee",
     "background-color": "orange",
     "padding": "10px"
     },
     "children": [
     {
     "elmType": "a",
     "txtContent": "Google",
     "attributes": {
     "target": "_blank",
     "href": "https://www.google.com/"
     }
     }
     ]
     }
     ]
    }

     

    You can change the two div's that have a width of 15% to the percentage that fits you.

     

    This is the best I can do 🙂

     

    If it's what you looked for: accept as solution to close this topic 😉

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard