popup on interceptor

rajesh9885
Mega Guru

hello,

Can anyone guide on who to create popup message Yes/NO when clicked on a link on interceptor page?

Its like 

we have a link expedited change, when we click on that it directly to the change window with change type as expedited

What i want is when someone click on expedited change link, system should ask "Are sure to raise expedited change"

is yes than proceed if no than stop

 

regards

6 REPLIES 6

sachin_namjoshi
Kilo Patron
Kilo Patron

Below post has solution for opening popup up on interceptor.

 

https://community.servicenow.com/community?id=community_question&sys_id=b9fd87addb9cdbc01dcaf3231f961978

 

Regards,

Sachin

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Interceptors are basically Wizards.  As an admin, you can click Edit Interceptor in upper right corner to edit the flow.  Then edit the expedited change item and instead of making it navigate to the change record, navigate to a new panel that asks for yes/no.

https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/wizards/concept/c_Wiza...

As a followup to my suggestion, I was able to set this up quickly.  Click the Edit Interceptor button.

 find_real_file.png

At bottom list where you have your current change choices, click New and choose "Move user on to another set of questions":

find_real_file.png

Then enter the details like below.  Then click the highlighted magnifying glass to create the next panel to prompt for your confirmation:

find_real_file.png

 

Click the New button on the popup

find_real_file.png

Then enter the details of your confirmation:

find_real_file.png

Then click submit and submit again which should take you back to your interceptor.  Once there click the highlighted link to put in your Yes/No options

find_real_file.png

find_real_file.png

 

My yes will take them to the new expedited change:

find_real_file.png

 

My No option takes the user back to the change list

find_real_file.png

 

Clicking New on change will now include the new option:

find_real_file.png

Then clicking Expedited Change will present this:

find_real_file.png

Please mark this post as helpful or the correct answer to your question if applicable so others viewing can benefit.

So far So good

 

Now i have an issue with redirection

UI page is OK

Problem is with client script

function actionCancel() {
var c = gel('submit_cancelled');
c.value = "true";
GlideDialogWindow.get().destroy();
}
function actionOk() {
response.sendRedirect("www,123.com");
}

 

Processiing

 

if (submit_cancelled == "false") {
response.sendRedirect('ww.abc.com');


}

I have button OK and Cancel on the UI page.

My requirement is when user click on OK ith should redirect to url 'www.123.com'

and when clicked on cancel it should redirect to url www.abc.com

 

When clicked on Cancel it gives message

GlideWindow.locate: window not found