Monday, April 7, 2014

SharePoint 2013 Links List Open in New Window

I explored various methods to make SharePoint link list to open in a new window at: SharePoint Link list: Open in a New Window, While the methods discussed in the article are applicable for SharePoint 2013 too, there is a one more: using calculated columns! Lets drill down in detail with SharePoint 2013 to make links to open in new window.

Here is the idea: Create a new custom list and make these changes to the list.

  1. Rename "Title" field to "Link Title"
  2. Add a field "Link URL" of single line of text
  3. Add a field "New Window" of choice with "Yes", "No"
    SharePoint 2013 Links List Open in New Window
  4. Add a calculated field of "Number" type with formula:
    =CONCATENATE("<DIV><a href='",[Link URL],IF([New Window]="Yes","' target='_blank' ","'"),">",[Link Title],"</a></DIV>")
Now, the list should look like:

So now, When you add new entries to SharePoint list, set the choice field to "Yes" to make SharePoint 2013 link list open in new tab.
SharePoint 2013 open link in new tab
BTW, the above method of opening SharePoint 2013 links list to new window works on any version of SharePoint!



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

3 comments :

  1. Hi, is there any way to get the calculated column to align left, using this method? Thank you.

    ReplyDelete
    Replies
    1. "Number" type columns are right aligned by default! If you want to make it left aligned, You can use jQuery (or you can edit the Form page with SPD!) . Here is the jQuery code:

      $(document).ready(function() {
      $('div.ms-numHeader').attr('align', 'left');
      $('div.ms-number').attr('align', 'left');
      });

      Delete
  2. Is there a way to have the url links open in a new browser window rather than a new tab?

    Client wants documents to open in a window so they can resize them to view side by side on their monitor rather than opening multiple tabs.

    ReplyDelete

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...