- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 11:25 AM - edited 12-21-2023 06:26 AM
Hello,
I have added a UI action button named "Create Change" on the catalog task table. When a user clicks on this button, it creates a change request and redirects to the new change request. However, I would like the new change request to open in a new tab.
I tried window.open(url, '_blank'); & top.window.open(url, '_blank'); but it's not working.
window.open(url, '_blank');
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2023 09:25 AM
Here is a perfect example in the thread. Put you record creation script in a script include and then use GlideAjax to call it from UI action and then use window.open or the method provided in the thread to open in a new tab.
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-19-2023 11:29 AM
To do so, your UI action needs to be Client UI action. window.open would only work in a client UI action.
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-20-2023 08:50 AM
@SanjivMeher Thank you for you response.
I tried it's not working. Can you help me with the script??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2023 09:25 AM
Here is a perfect example in the thread. Put you record creation script in a script include and then use GlideAjax to call it from UI action and then use window.open or the method provided in the thread to open in a new tab.
Please mark this response as correct or helpful if it assisted you with your question.