How to auto-populate the name of the manager as per the user name

Alfiya
Tera Contributor

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.

3 REPLIES 3

Voona Rohila
Kilo Patron
Kilo Patron

Check Below Link

https://community.servicenow.com/community?id=community_question&sys_id=06cdcb6ddb9cdbc01dcaf3231f96...

 

You can use them in your Variable Reference Qualifier

 

find_real_file.png


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

Tanushree Doiph
Mega Guru

Hi @Alfiya,

Have you solve your problem?

If yes then please mark my answer correct.

Thanks