Opening the New form from another list using SharePoint list formatting



If you want to open the new form in another list using SharePoint Lists JSON formatting, it is pretty straightforward.

All you need to do is to use the href property in a link object inside of your custom HTML generated by list formatting, and point it to the relative path of the new item form of the list you want to open, for example:

/sites/<your site>/Lists/<your list>/NewForm.aspx

Imagine you have an issues list in your site, you could use the below JSON template:

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "a",
  "attributes": {
    "class": "ms-fontColor-themePrimary  ms-fontWeight-semibold",
    "target": "_blank",
    "href": "/sites/SharePointFormsDemo/Lists/Issues/NewForm.aspx"
  },
  "style": {
    "text-decoration": "none"
  },
  "children": [
    {
      "elmType": "span",
      "attributes": {
        "iconName": "CircleAdditionSolid"
      },
      "style": {
        "margin-right":...



Source link

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
February 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28   
« Jan   Mar »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...