Catalog client scripts to populate logged in user
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2022 02:05 AM
Requirement is to populate logged in user name.
Wrote client script of onload function just to populate logged in user
alert('welcome');
var us = g_user.userID;
g_form.setValue('caller_id',us);
even alert is not getting populated
Any suggestions
Labels:
- Labels:
-
Service Catalog
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2022 02:55 AM
Hi Meghana
If my response is helpful please mark it as correct also
Regards,
Rakesh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2022 02:36 AM
Hi,
For your script to work please ensure the UI Type - ALL
It will work
regards
Ankur
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader