How to auto populate the logged in user details using onload client script

Sweety11
Kilo Contributor

Hi All,

I have a requirement where I have created multiple variables - RequestedFor, RequestedBy, Location, City, Country, MobileNumber, ManagerName and incidentLists

1.user opens the form above details auto populate with logged in user
2.on change of user, above details to be changed auto change based on the user change

3.incidenlists var only be visible on the form once the all the user details entered
4.populate all the list of incidents raised by selcted user - reqfor

Please help me to achieve this requirement

 

Thanks&Regards,

Sweety.

22 REPLIES 22

Reference article you can follow as well, it is populating reference fields:

https://community.servicenow.com/community?id=community_question&sys_id=6bdc44b21bf704107a5933f2cd4bcb68

Best Regards
Aman Kumar

Thank you Aman,

Your inputs helped me to complete the requirement

Feel free to mark correct, will be helpful for future visitors

and Thanks to you as well, learned a new thing today 🙂

Best Regards
Aman Kumar