- 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,485 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:15 AM
Hi Emmanuel,
Use the default value for the variable:
javascript:gs.getUserID()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 07:24 AM
Hello Chuck,
Thanks for the quick update. Please should I create a new catalog client scripts for it? If yes, Is this the only script that I have to use? What type; onload or onsubmit? and I do I call it variable to it?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 07:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 07:34 AM
It works. Thanks