Skip to content

Commit ded9623

Browse files
Create README.md
1 parent d09071b commit ded9623

File tree

1 file changed

+18
-0
lines changed
  • Specialized Areas/Auto-Populate Manager Field Based on Selected User

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# 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.
18+

0 commit comments

Comments
 (0)