How to disable Request confirmation pop-up?

Smith Johnson
Tera Guru

Hello all,

I want to disable the following popup, when a new request is submitted, but I don't know how.

find_real_file.png

How can I disable it?

Thank you in advance.

Regards,

Smith.

1 ACCEPTED SOLUTION

You need to set that via script or workflow.

For example using a before BR on the Request table:

(function executeRule(current, previous /*null when async*/) {


  var grRITM = new GlideRecord('sc_req_item');    

grRITM.addQuery('request', current.sys_id);    

grRITM.query();    

while (grRITM.next()) {    

  if (!JSUtil.nil(grRITM.variables.requested_for)) {    

      current.requested_for = grRITM.variables.requested_for;

  }    

}


})(current, previous);

 

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

View solution in original post

4 REPLIES 4

Willem
Giga Sage
Giga Sage

1 - Service Catalog

2 - Properties

3 - Click in Portal option

4 - Disable "Show order confirmation popup in checkout process"

5 - Save

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

 

Looks like this:

find_real_file.png

Hey @Willem thank you so much for your answer.

It seems that is what I want.

 

However, now I face another issue. Once I disable the pop up, I want the Requested for to be a field on catalog's item form.

So, I went to the catalog item and added a new variable "Requested for" as a reference field to sys_user table.

 

The issue is that, once the request is submitted, the requested for value does not populate the requested for field of the new request record.

For example, when I am logged in as admin and I select requested for "Abel Tuter", then a new request "REQ00000001" is created, but on the requested for field, it has "System administrator", while my need is to have "Abel Tuter".

How can I face this issue?

You need to set that via script or workflow.

For example using a before BR on the Request table:

(function executeRule(current, previous /*null when async*/) {


  var grRITM = new GlideRecord('sc_req_item');    

grRITM.addQuery('request', current.sys_id);    

grRITM.query();    

while (grRITM.next()) {    

  if (!JSUtil.nil(grRITM.variables.requested_for)) {    

      current.requested_for = grRITM.variables.requested_for;

  }    

}


})(current, previous);

 

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

Thank you so much @Willem . It works!!

 

Thanks again.