When adding a link to a table for a details page, is it possible to force the details page to open in a new tab?
Yikes
Thank you.
It’s actually relatively new. Even I forget about some features/settings we have in place.
Oh I totally do. It’s one of those “good problems to have”, so many features and settings that I get lost easy sometimes.
Definitely. Will add to this as well.
This has been added.
Since this isn’t yet an option for the Links > Connected Page (Link Page) option, I wanted to provide the following solution.
- Edit the Link Page Column
- Add a CSS Class (my example will be “link-page.”
- Find the Component ID of the table
- Add the following code to the JavaScript of the page.
Javascript code below
TB.render('component_ID', function(data) {
data.ele.find('.link-page a').attr('target','_blank');
});
$('body').on('keyup',function(){
setTimeout(function(){
$('.link-page a').attr('target','_blank');
},1000);
});
Please remember to change component_ID to your component ID found in step 3.
Chem,
Your solution works unless the table is the filtered result of a search component (even there, sometimes it works). As a workaround, I am advising users to right-click and choose “open link in new tab.”
Thanks Chem this a a good start, and its a shame that this won’t work as often as it will.
I have been trying to get it to work in an accordion, and on other complex pages with no joy. Opening in a new window (or access to Modal) is so important when building a complex work based app, and its a shame that this in not available everywhere inside Tadabase.