Not showing info message in workspace and classic view
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 02:05 PM
Hi there,
I am trying to display the user email from the user list collector in the info box but this is not working on the requested item and catalog task. can anybody please help me with the code... This is working on the item view on the portal but not on the classic view and workspace.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
//Type appropriate comment here, and begin script below
var userList = newValue.split(','); //Getting values from list collector
for (var i = 0; i < userList.length; i++) {
var grUser = new GlideRecord('sys_user');
grUser.addQuery('sys_id', userList[i]);
grUser.query(getEmail);
}
}
function getEmail(grUser) {
var userEmails = [];
while (grUser.next()) {
userEmails.push(grUser.email);
g_form.showFieldMsg("users", userEmails.toString());
}
}
0 REPLIES 0