UI Builder open link new tab

Tadz
Tera Guru
Tera Guru

Hi,

Is it possible for UI Builder to open link in new tab? 

Thanks,

Tads

6 REPLIES 6

Community Alums
Not applicable

Hi @Tadz ,

Refer to this article and configure step-by-step: https://community.servicenow.com/community?id=community_article&sys_id=0c2fc3e2dbc305d03321db85ca961...

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

That article is on a different topic.

Community Alums
Not applicable

I think , you should ask your question properly then as the question which you have asked as per that you want to open an external URL, for that you got to follow the link i shared above.

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Velma
Tera Guru

My experience is in Rome (no San Diego so far), and I imagine San Diego is the same.

This depends on whether you want to open an external URL (it will always open in a different tab) or a route (it will always open in the same tab). The Link to Destination event handler will open any external page (outside the routing of your experience) in a new browser tab and will open any route (inside your experience) in the same tab. I believe helpers.navigate.to only will handle a route and will always open it in the same tab (but worth double checking).

There is a text link component. https://developer.servicenow.com/dev.do#!/reference/now-experience/rome/now-components/now-text-link/playground. That has an OpenWindow toggle property for this, so it's easy, if something like a link or a button is what you need (it could be styled). I think to use this with a route you'd have to give the partial path to the route--"x/g...". 

I haven't seen a workaround yet if what you want is to open your form from a list click in a new tab. Maybe there is a way to generate a button click on a hidden text link component in code using emit, but I haven't seen it, and they seem to be very intent on keeping us from using any of the DOM access/low-level JavaScript things developers used to use to work around missing functionality.