Forum Discussion

lucasignatius's avatar
lucasignatius
Copper Contributor
Jan 15, 2021
Solved

Button on SharePoint Online to link other list

Hi, I want to add button to link other List SharePoint online in same Environment, there is JSON Script?I mean when click button ClickToOrder it will open a new window SharePoint List Can anybody he...
  • ganeshsanap's avatar
    Jan 15, 2021

    lucasignatius 

     

    You can add "target": "_blank" to open the link in new browser tab.

     

    You can use below JSON to open another SharePoint list in new browser tab:

     

     

    {
       "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
       "elmType": "a",
       "txtContent": "Click to Order",
       "attributes": {
          "target": "_blank",
          "href": "https://<tenant>.sharepoint.com/sites/siteName/Lists/listName/"
       }
    }

     

     

    Replace the URL in href attribute with the actual URL of your 2nd list.


    Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

     

Resources