- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2018 08:08 AM
I need to add a field to the record producer that auto-populates with today's date/time when the team member opens it to fill it out. It needs to be noted for the team member that they are authorizing the request at a specific date and time.
Is this something I should do through a catalog client script? Is it something I can do through the default value field on the "date" field on the record producer? Any help on how to do this would be greatly appreciated.
thanks,
Richelle
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2018 08:13 AM
HiRichelle,
You can set the default value for the variable as below
gs.getDateTimeNow(); //if it is a date/time field
gs.getDateNow(); //if it is a date field
Thanks,
Jaspal Singh
Hit Helpful or Correct on the impact of response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2018 08:13 AM
HiRichelle,
You can set the default value for the variable as below
gs.getDateTimeNow(); //if it is a date/time field
gs.getDateNow(); //if it is a date field
Thanks,
Jaspal Singh
Hit Helpful or Correct on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2018 08:16 AM
Perfect, thanks!
Richelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2019 06:07 AM
The correct answer is
gs.nowDateTime()
gs.nowDate()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 02:50 AM
How would I do this if I needed a date 10 days in the future?