Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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 !!!