- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 12:36 AM - edited 02-24-2023 12:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 01:47 AM
g_navigation won't work in portal.
you need to use top.window
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == 'some value'){
var redirectURL = 'https://something.service-now.com/itsp?id=sc_catalog_item&sys_id=something';
top.window.open(redirectURL, "_blank");
}
}
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
02-24-2023 01:30 AM - edited 02-24-2023 01:31 AM
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == 'some value'){
var redirectURL = 'https://something.service-now.com/itsp?id=sc_catalog_item&sys_id=something';
g_navigation.open = redirectURL ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 01:47 AM
g_navigation won't work in portal.
you need to use top.window
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == 'some value'){
var redirectURL = 'https://something.service-now.com/itsp?id=sc_catalog_item&sys_id=something';
top.window.open(redirectURL, "_blank");
}
}
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