Open URL in another window in flow designer

Saib1
Tera Guru

Hi All,

 

I have the code in flow designer and that works fine added in the WorkNotes . I need to open this URL in another window.

 

How to do it.

 

var text='Review the Link ';
var url = '<a href="www.servicenow.com">'+text+'</a>';
return '[code]' + url + '[/code]';
 
Shohaib_0-1669830239982.png

 

1 ACCEPTED SOLUTION

Rajesh Mushke
Mega Sage
Mega Sage

Hi @Saib1,

 

you can use target, like this: <a target="_blank" href="whatever">my link</a>. Keep in mind, modern browsers now seem to frown on this because they want the user to control where the link opens, and if the browser doesn't allow popups on your site, the user may not notice the browser has blocked a popup.

Let me know if you need further help,!



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

View solution in original post

2 REPLIES 2

Rajesh Mushke
Mega Sage
Mega Sage

Hi @Saib1,

 

you can use target, like this: <a target="_blank" href="whatever">my link</a>. Keep in mind, modern browsers now seem to frown on this because they want the user to control where the link opens, and if the browser doesn't allow popups on your site, the user may not notice the browser has blocked a popup.

Let me know if you need further help,!



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Ishaan Shoor
Mega Sage
Mega Sage

@Saib1 

Have a look at this video by Rob to make work notes beautiful embed links etc; 

https://www.youtube.com/watch?v=oYi0Z6gKDi8
.

 

Hope this helps!
BR.
Ishaan Shoor
I love using journals to automatically log summary data. The problem is the BORING plain text. This video will teach you how to format text, embed hyperlinks, and add emojis to work notes (or any other journal entry field you have). 🔎 Looking for #ServiceNow talent or opportunity? ...