- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 01:12 AM
Hi,
I have created a UI Action in one of the custom scope for taking the users to one specific portal page.
But redirect is not happening as expected. Can anyone suggest me on this.
Even I tried window.open but it didn't work as expected.
Thanks in advance!
Best Regards,
Ganesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 01:24 AM
use this in workspace client script
Something like this and you need to use open(url) method.
function onClick(g_form) {
var url = "/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=c5a8f3720703a0102011ff208c1ed0eb"; // pass your URL here
open(url);
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 01:24 AM
use this in workspace client script
Something like this and you need to use open(url) method.
function onClick(g_form) {
var url = "/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=c5a8f3720703a0102011ff208c1ed0eb"; // pass your URL here
open(url);
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 01:47 AM
Hello @Ankur Bawiskar : Thanks for your response. it worked as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 08:59 PM
It worked for me 🙂