- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 07:12 AM
Hello community,
I will like help with a request I have been assigned to. I have created a catalog item request. One of the variables is "who is submitting this request"? I want it to auto populate with the current user. I don't know what script to use to make this possible. Any guidance will be appreciated.
Thanks
Solved! Go to Solution.
- 34,488 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 07:28 AM
You can do this right in the variable declaration itself. No client script necessary.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 07:37 AM
I'm glad you got your question answered. Thank you for participating in the community.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 07:19 AM
Just write a on load client script,
in the g_form.setValue ('field name', g_user.userID).
refer the glide user page: http://wiki.servicenow.com/index.php?title=GlideUser_(g_user)#gsc.tab=0
If you need tp populate all the items, then create a field in variable set and use the variable set in all required catalogs and write on load scrip on variable set.