- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-19-2022 02:46 PM
I have a catalog item used for a variety of user account requests - new account creations, server access etc.
There is one process for password resets that exists outside this form. Is there a way to redirect user to a specific URL if they select a specific combination of variables.
For example, if they select Request Type = Password Reset can I automatically route them to a URL when they select that Request Type, but selection of other request types would leave them in this Catalog Item?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-20-2022 11:49 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-20-2022 11:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-20-2022 01:56 PM
Thank you so much! That works exactly as I need
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-04-2022 12:05 PM
Thanks for this! I'm attempting to use this and I am clearly missing something. My scenario:
I have a select box for "request type". If users select "PDQ", then they should be re-routed to an alternate catalog item.
I've found that the redirect is happening, regardless of which type is being selected.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var type = g_form.getValue('monitoring_type');
if (type == 'PDQ');
top.window.onbeforeunload = null;//this removes the popup that asks if you want to leave
top.location.href = '/sp?id=sc_cat_item&sys_id=2ab05f721b129110b7b35284604bcb81';
}
Pointers on how I should fix this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-05-2022 11:59 AM
I have adjusted your script, please follow the below script:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var type = g_form.getValue('monitoring_type');
if (type == 'PDQ'){
top.window.onbeforeunload = null;//this removes the popup that asks if you want to leave
top.location.href= '/sp?id=sc_cat_item&sys_id=2ab05f721b129110b7b35284604bcb81';
}
}
,
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-07-2022 06:34 AM
Thank you! This resolved my issue perfectly.