You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Auto-Populate Manager Field Based on Selected User
2
+
3
+
## Description
4
+
This catalog client script automatically fills the **Manager** field when a user is selected in a Service Catalog item. It uses a client-callable Script Include to fetch the manager of the selected user from the `sys_user` table.
5
+
6
+
## Files Included
7
+
-`ClientScript_AutoPopulateManager.js`
8
+
-`ScriptInclude_GetManager.js`
9
+
10
+
## Use Case
11
+
Improves user experience by reducing manual input and ensuring accurate manager data in catalog requests.
12
+
13
+
## Setup Instructions
14
+
1. Create a **Catalog Client Script** on the relevant catalog item.
15
+
2. Add the provided JavaScript to the `onChange` function of the `user` field.
16
+
3. Create a **Script Include** named `GetManager` and mark it as client-callable.
17
+
4. Ensure the catalog item has a `manager` field to populate.
0 commit comments