How to populate the manager based on requested for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2020 08:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2020 08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2020 08:49 AM
Hi,
You can do this via onChange catalog client scirpt.
Select the variable name as Requested For
And UI type as ALL
write below lines of code in script field.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
//Type appropriate comment here, and begin script below
var user=g_form.getReference('requested_for',doAlert);
function doAlert(user)
{
g_form.setValue('manager',user.manager);
}
}
Thanks,
Pooja M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2022 04:35 AM
Hi Pooja,
I created above catalog OnChange client script but auto populating only sys_id of Manager.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 08:26 AM
Hi,
Hope you are doing good.
If you find my response as correct and worthy please mark it as correct and close the thread.
Thanks,
Pooja M