We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 671e190 commit 669bc47Copy full SHA for 669bc47
Client-Side Components/Catalog Client Script/Catalog Approval/client script.js
@@ -0,0 +1,10 @@
1
+function onLoad() {
2
+ var ga = new GlideAjax('ApprovalChainHelper');
3
+ ga.addParam('sysparm_name', 'getApprovers');
4
+ ga.addParam('sysparm_item_id', g_form.getUniqueValue());
5
+ ga.getXMLAnswer(function(response) {
6
+ var approvers = JSON.parse(response);
7
+ var message = 'This request will be approved by: ' + approvers.join(', ');
8
+ g_form.showFieldMsg('requested_for', message, 'info');
9
+ });
10
+}
0 commit comments