- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 09:29 AM
I am trying to open the URL for a Knowledge Article (KA) in new browser window using a UI Action in Custom Scoped Application - Jakarta
action.setRedirectURL works fine; but opening in a new window is required...
window.open('https://devXXXXX.service-now.com/kb_view.do?sysparm_article=KB0010001','_blank');
Does not work because selecting the Client option for a UI Action disables the button (in Custom Scoped Application - Jakarta)
GlideDialogWindow('https://dev10457.service-now.com/kb_view.do?sysparm_article=KB0010001', true);
has not worked either.
I have a UI policy that opens the KA in a new window:
function onCondition() {
g_navigation.openPopup('https://dev10457.service-now.com/kb_view.do?sysparm_article=KB0010001', true);
}
but cannot figure out how to make a UI policy recognize a Button click (UI action).
Also I have tried populating the value of a field within the UI Action but
g_form.setValue('u_table', field); has not worked (in Custom Scoped Application - Jakarta)
Any ideas opening a URL in new browser window using UI Action in Custom Scoped Application - Jakarta???
Thanks for your time,
Lon
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 07:09 PM
Thats great Lon. Can you please mark this thread answered so that it could help someone in future?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 01:14 PM
I am going to try that; but I need something that works on a form without going to a portal page.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 10:01 AM
window.open should work on form client script.
Otherwise try the below referred from Re: How to open a new window using UI action javascript after clicking a button?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 12:01 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 07:09 PM
Thats great Lon. Can you please mark this thread answered so that it could help someone in future?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 07:45 PM
Done.
Could not find the link earlier...
Thanks for your help and time,
Lon Landry