How to auto-populate the name of the manager as per the user name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2021 03:40 AM
Hello everyone,
So I have a requirement I have three fields on the Catalog Item.
1)Requested For : Reference Field (Auto populates with a logged in user)
2)User Name : Reference Field (Auto-populates as per the Requested for Variable and as it is a reference field we can change this value)
3)Manager : Reference Field
So I want that which ever user is selected in "User Name" Variable , his/her manager should get auto populated in the "Manager" Variable, and also this "Manager" Variable can change its value as per the user wants as it is a reference field.
(Please note that all 3 fields are reference fields and should be editable and their value can be changed as the user wants.)
How can I write an Onchange Client Script for this?
Thanks in advance.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2021 03:43 AM
Hey,
Refer below link,
catalog client script for manager - Developer Community - Question - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2021 03:44 AM
Check Below Link
You can use them in your Variable Reference Qualifier
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 02:19 AM
Hi @Alfiya,
Have you solve your problem?
If yes then please mark my answer correct.
Thanks