Open in new tab: Links in related lists

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
dominique.beaudin
Posts: 49
Joined: Tue Mar 06, 2018

11 Sep 2018

Hello,
I am using a Promoted items list as a related list in a form. Is there a way to get the link to open in a new tab (in the browser)? I have selected this option on the list, but it does not seem to work.

Suggestions are welcome.

User avatar
AlexZver
Posts: 232
Joined: Mon Aug 27, 2018

12 Sep 2018

Hi!

It's a common problem in Sharepoint 2013: http://johnliu.net/blog/2015/8/fixing-s ... -behaviour
To fix this problem simply add this code to your JavaScript Editor:

Code: Select all

$( ".ms-vb2 a" ).each(function(index) {
    $(this).on("click", function(event){
        event.preventDefault();
	window.open($(this).attr('href'), '_blank');
    });
});

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests