How to make a field whose value is a reference to open in new tab or new window

  • 1
  • Question
  • Updated 2 years ago
  • Answered
  • (Edited)
I have a field which is a reference to a record. And when this hyperlink is clicked, it should open a new tab/new window.
Photo of Rowel Ventura

Rowel Ventura

  • 424 Points 250 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Rowel Ventura

Rowel Ventura

  • 424 Points 250 badge 2x thumb
This is a lifesaver!

(function(skuid){ 

var $ = skuid.$; 

$(function(){ 

$('head').append( 

$('<base target="_blank">') 

); 

}); 

})(skuid);

credits to: Anna Wiersema
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Hi Rowel. It might also be worth it to try creating a template field, or a template component that uses basic HTML and merge syntax to build a link with the correct fields. The target="_blank" attribute of the URL element would open the link in a new tab.