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 11739fa commit cdd271dCopy full SHA for cdd271d
Client-Side Components/Catalog Client Script/Multi-User Collaboration/client script.JS
@@ -0,0 +1,13 @@
1
+function onSubmit() {
2
+ var collaborators = g_form.getValue('collaborators'); // Multi-user reference field
3
+ if (collaborators) {
4
+ var ga = new GlideAjax('CollaboratorHandler');
5
+ ga.addParam('sysparm_name', 'addCollaborators');
6
+ ga.addParam('sysparm_request_id', g_form.getUniqueValue());
7
+ ga.addParam('sysparm_users', collaborators);
8
+ ga.getXMLAnswer(function(response) {
9
+ alert('Collaborators added: ' + response);
10
+ });
11
+ }
12
+ return true;
13
+}
0 commit comments