- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2020 04:40 AM
Hello all,
I want to disable the following popup, when a new request is submitted, but I don't know how.
How can I disable it?
Thank you in advance.
Regards,
Smith.
Solved! Go to Solution.
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2020 05:10 AM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2020 04:44 AM
1 - Service Catalog
2 - Properties
3 - Click in Portal option
4 - Disable "Show order confirmation popup in checkout process"
5 - Save
Looks like this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2020 05:03 AM
Hey
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2020 05:10 AM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2020 05:20 AM
Thank you so much
Thanks again.