Skip to main content

Is it possible to open a new tab from a quick link?

Hey Thomas,

 

As an Admin in the quick links widget you can edit each tile. Within the edit of each tile at the bottom near the save button you can check the “open in tab”.

 

Hope this helps!

 

Thanks,

Anthony


My question is a take on this 2.0. 

 

Does anyone know if any of the button can open in a new tab? I tried the banner button and it does not have this option. If it comes down to it, we’ll hack it with a QL, but it’s not what we’re looking for. 


Hi @Laurenseife - there’s no out-of-the-box way to change this for links that aren’t immediately configurable, but you can do something with a small script if you need to.  If you add this bit of JS, for example, into your Third-Party Scripts, it will make the banner button open in a new tab:

<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {

var buttons = document.querySelectorAll('.banner-notification_url');

buttons.forEach(function(button) {
button.setAttribute('target', '_blank');
});
});
</script>

 


Thank you @Kenneth R. I appreciate you!


@Kenneth R, I’m trying to apply the code in sandbox- testing each of the sections in the third-party scripts area, and it’s not working as expected.

In this scenario, do I ping my CSM for a few mins/ are you able to offer addl guidance? Thank you in advance!! 


Hi @Laurenseife - I’ll send you a DM and take a look with you.  :)


Reply