Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to navigate to an external page from UI Action?

Sandeep _
Tera Contributor
 
1 ACCEPTED SOLUTION

_gaurav_S
Tera Expert

Create a UI Action with the Client checkbox checked, also add the below function name in the OnClick field.
and write code something like this:

function shippingRedirect(){
    var url = 'https://google.com';
    top.window.open(url,'_blank') ;
}

View solution in original post

2 REPLIES 2

_gaurav_S
Tera Expert

Create a UI Action with the Client checkbox checked, also add the below function name in the OnClick field.
and write code something like this:

function shippingRedirect(){
    var url = 'https://google.com';
    top.window.open(url,'_blank') ;
}

Sandeep _
Tera Contributor

Yes, that solution is working for my side.