is it possible to show the Emergency Change Interceptor only in the SOW?

SpartanW
Tera Contributor

Hello All,

 

I want the Emergency Change Interceptor to be shown only in the Service Operation workspace, not on the Backend or any related list on Incident or problem form.

 

And this Emergency Change Interceptor is only visible for Incidents P1 and P2 in SOW.

 

SpartanW_0-1751872608857.png

 

Thanks.

 

6 REPLIES 6

Musab Rasheed
Tera Sage
Tera Sage

For backend, you can go interceptor and hide emergency option, whereas on form you can simply hide it using UI policy or client script.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hello @Musab Rasheed ,

When I create Change using incident Related list - > new then I do not want to see Emergency change Model in the Backend because we have a option in incident Hamburger to create Emergency change but I want to see this model in the SOW for the Incident P1 and P2, how can we restrict this using UI policy or Client Script.

SpartanW_0-1751874230159.png

 

Thanks.

 

There is no easy solution for this, I see options are visible based on below table, if you hide it will hide everywhere. What I suggest is write business rule and based on view you don't allow user to create change if view is from default.

 

https://Instance/chg_model_list.do?sysparm_userpref_module=a2f662b55332101034d1ddeeff7b1245&sysparm_...

 

Sample BR

(function executeRule(current, previous) {
  if (!gs.isInteractive()) return;
  var map = gs.action.getGlideURI().getMap();
  var view = map.get('sysparm_view');
  gs.log('View: ' + view);

  if (view == 'your_view_name') {
    // your logic…
  }
})(current, previous);
Please hit like and mark my response as correct if that helps
Regards,
Musab

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @SpartanW 

Not the best approach, mate. It's a model, and these modules are displayed based on the interceptor. You can hide it only for the native view — you need to modify the interceptor to control its visibility in the native view.

Native View:

 

DrAtulGLNG_0-1751876363952.png

https://InstacneNAME.service-now.com/now/nav/ui/classic/params/target/sys_wizard.do%3Fsys_id%3D821fa3e153a3101034d1ddeeff7b1288%26sysparm_record_target%3Dsys_wizard%26sysparm_record_row%3D2%26sysparm_record_rows%3D2%26sysparm_record_list%3DnameCONTAINSchange%255EORDERBYname

 

 

For SOW:

sow/create-change-request-page

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************