How to redirect to a new Tab/ window from UI Action without using Client script.

Glenn9
Giga Contributor

Hi 
We have a requirement to redirect to a new tab/ Window from UI action without using Client script.
We have tried using 'window.open(url, '_blank');' but the page isnt loading from the current page.

Thanks 

Glenn

2 REPLIES 2

Harsh Vardhan
Giga Patron

in ui action you can use client script and there you can use that code. can you confrim why you dont want to use client script ?

Note: window.open(url, '_blank'); works on client side. 

 

https://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/

Himanshu Dubey
Giga Guru

Hi Glenn,

 

Below link might help you please look into that

https://community.servicenow.com/community?id=community_question&sys_id=96e0bb35dbec3b405ed4a851ca96...

Please mark correct and Helpful if it helps

Thanks & Regards

Himanshu Dubey