Back to form formats
Form formattingSharePoint Online

Display Created and Modified Information in the Footer

This sample demonstrates displaying the values of Created, Created By, Modified, and Modified By in the footer of the form.

Display Created and Modified Information in the Footer formatting preview
Sample preview · View original image

Copy. Apply. Make it yours.

Get this format

1 definition

Review the requirements below, then paste this JSON into the matching formatting panel. Show me where.

Use your list's internal column names and replace any tenant-specific URLs or flow IDs. Formatting is presentation, not a way to secure data.

Form footer
Download JSON
{
  "elmType": "div",
  "children": [
    {
      "elmType": "div",
      "style": {
        "display": "=if([$ID],'flex','none')",
        "flex-direction": "column",
        "margin-top": "10px",
        "margin-bottom": "10px"
      },
      "attributes": {
        "class": "ms-fontSize-s"
      },
      "children": [
        {
          "elmType": "div",
          "style": {
            "display": "flex",
            "flex-direction": "row",
            "align-items": "center",
            "white-space": "nowrap",
            "column-gap": "3px"
          },
          "children": [
            {
              "elmType": "span",
              "txtContent": "Created at"
            },
            {
              "elmType": "span",
              "txtContent": "[$Created]"
            },
            {
              "elmType": "span",
              "txtContent": "by"
            },
            {
              "elmType": "div",
              "style": {
                "display": "flex",
                "flex-direction": "row",
                "align-items": "center",
                "white-space": "nowrap",
                "border-radius": "14px"
              },
              "attributes": {
                "class": "ms-bgColor-neutralLight ms-fontColor-neutralPrimary"
              },
              "children": [
                {
                  "elmType": "img",
                  "style": {
                    "width": "24px",
                    "height": "24px",
                    "border-radius": "50%"
                  },
                  "attributes": {
                    "src": "=getUserImage([$Author.email],'small')"
                  }
                },
                {
                  "elmType": "div",
                  "txtContent": "[$Author.title]",
                  "style": {
                    "padding-left": "6px",
                    "padding-right": "10px"
                  }
                }
              ]
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "display": "flex",
            "flex-direction": "row",
            "align-items": "center",
            "white-space": "nowrap",
            "margin-top": "10px",
            "column-gap": "3px"
          },
          "children": [
            {
              "elmType": "span",
              "txtContent": "Last modified at"
            },
            {
              "elmType": "span",
              "txtContent": "[$Modified]"
            },
            {
              "elmType": "span",
              "txtContent": "by"
            },
            {
              "elmType": "div",
              "style": {
                "display": "flex",
                "flex-direction": "row",
                "align-items": "center",
                "white-space": "nowrap",
                "border-radius": "14px"
              },
              "attributes": {
                "class": "ms-bgColor-neutralLight ms-fontColor-neutralPrimary"
              },
              "children": [
                {
                  "elmType": "img",
                  "style": {
                    "width": "24px",
                    "height": "24px",
                    "border-radius": "50%"
                  },
                  "attributes": {
                    "src": "=getUserImage([$Editor.email],'small')"
                  }
                },
                {
                  "elmType": "div",
                  "txtContent": "[$Editor.title]",
                  "style": {
                    "padding-left": "6px",
                    "padding-right": "10px"
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

From the contributor

How to use this sample

Summary

This sample demonstrates displaying the values of "Created" (internal name: Created), "Created By" (internal name: Author), "Modified" (internal name: Modified), and "Modified By" (internal name: Editor) in the footer of the form.

screenshot of the sample

Form requirements

None

Sample

Solution Author(s)
created-modified-footer.json Tetsuya Kawahara

Version history

Version Date Comments
1.0 October 27, 2024 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.