Autopopulate user name and current date using client scripts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2023 09:51 AM
How to autopopulate user name and current date in catalogue form service now.
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2023 09:55 AM
You can set default values for both of the variables. Without testing the date one, I am not sure if the format works with the date catalog variable.
// Username
javascript:gs.getUserID();
// Date
javascript:new GlideDateTime().getDate()
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2023 09:59 AM
for userID use Javascript: gs.getUserID()
for time use Javascript: gs.nowDateTime()
you should put these into the default value of the variable