Create link to new folder and item actions in modal window in SharePoint 2013

Create link to “New Item”

<a href=”javascript:OpenPopUpPageWithTitle(‘</site/library>/_layouts/15/Upload.aspx?List={<List-GUID>}&RootFolder=&IsDlg=1′,RefreshOnDialogClose,null,null,'<Title>’);”>Add item</a>

Create link to “New Folder”

<a href=”javascript:OpenPopUpPageWithTitle(‘</site/library>/Forms/Upload.aspx?RootFolder=&Type=1&IsDlg=1′,RefreshOnDialogClose,null,null,'<Title>’);” >New Folder</a>

7 thoughts on “Create link to new folder and item actions in modal window in SharePoint 2013”

  1. You are missing a critical part to your “new folder” link. You need a semi colon after the close parenthesis. It should look like this instead: <a href=”javascript:OpenPopUpPageWithTitle(‘/Forms/Upload.aspx?RootFolder=&Type=1&IsDlg=1′,RefreshOnDialogClose,null,null,’’);” >New Folder

  2. How we can create dynamically link to create folders inside other folder looking into the current url?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.