I have a list, in the list is a look-up column referencing a document library. (n.b. the Lookup column is actually a 3rd party column a Sparqube Lookup Tracker, but is a look-up column).

Is there a way to change the behaviour of clicking on a link to make it open in a new tab in the browser instead of opening in a tiny pop-up window? The documents are pdfs - they open in a tiny window, so it's useless at present. If they were links to e.g. Word documents I guess they'd open up in Word.

doc opens in tiny window

List Settings>Opening Documents in the browser.

open in new window

Lookup Column Settings:

I've fiddled a bit with the 'Display Format' setting, but it doesn't make any difference.

enter image description here

Right clicking and selecting "Open in new tab" works, but it's not obvious for users to do this!

right click link

  • Have you tried removing onclick action from those links? You could try something like this: document.querySelectorAll('.ms-cellstyle a[href*="RootFolder=*"]').forEach(el => {el.setAttribute('onclick', ''); el.setAttribute('target', '_blank')}); – Salah Dec 17 '18 at 14:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.