How to auto populate the logged in user details using onload client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 01:43 AM
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.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 08:10 AM
Reference article you can follow as well, it is populating reference fields:
https://community.servicenow.com/community?id=community_question&sys_id=6bdc44b21bf704107a5933f2cd4bcb68
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 08:38 AM
Thank you Aman,
Your inputs helped me to complete the requirement

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 10:27 AM
Feel free to mark correct, will be helpful for future visitors
and Thanks to you as well, learned a new thing today 🙂
Aman Kumar