Redirect URL from dropdown.

Brian Lancaster
Tera Sage

Hello All,

There was a page created outside of service now.   We want to make it so that if someone picks something specific from a drop down it redirects to our internal internet site.   Is there anyway to do this?

1 ACCEPTED SOLUTION

Brian Lancaster
Tera Sage

Found my own answer.   Looks like I just need a client script for on change and look for when the variables changes.



function onChange(control, oldValue, newValue, isLoading) {


  if (!isLoading) {


  var reqType = g_form.getValue('request');


  if (reqType == 'Redirect URL') {


  window.open("http://www.google.com");


  window.location = 'home.do';


  }


  }


}


View solution in original post

10 REPLIES 10

Add below in your client script

if (parent && parent.window) {
                parent.window.onbeforeunload = null; // Disables the "unsaved changes" prompt
}