We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Field decorator that opens external URL in Configurable Workspace

Walt Janssens
Tera Contributor

Hi,

 

In Service Operations Workspace, I am trying to build an Action Assignment with Action Model = Field that opens a URL in a new tab of the browser.

I already tried client side script with 

                g_navigation.openPopup(url);
                window.open(url);
                window.open(url, '_blank');
And server side script with 
                action.setRedirectURL(url);

But none of them seem to work.
 
Who can help?
2 REPLIES 2

Walt Janssens
Tera Contributor

Found the answer: the following client script works:

 

var win = top.window.open(url, '_blank');
win.focus();

Thank you !!!