- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 06:45 AM
I am using a "Single Line Text" variable. I would like to know how to pull the current date to auto fill in this field. I have tried a few different client scripts, but cannot get this to work. I have very little knowledge on scripting.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 06:48 AM
Have you tried the default value in the catalog item definition?
javascript:gs.nowDateTime()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 06:48 AM
Have you tried the default value in the catalog item definition?
javascript:gs.nowDateTime()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2016 12:13 AM
Hi Chuck,
We have a custom date (u_create_date) field which needs to inherit the date value from the OOB sys_created_on (Date/Time) field in user's time zone.
Also, value of the custom date should match with the value of the date stored on the sys_created_on field.
EX: If an user in PST timezone has created a record on Dec 07 2016 22:00:00 PST then when an user from Hong kong time zone views
this record he should see the value of the custom date field according to his time zone.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 06:48 AM
under configure dictionary, default value
javascript: gs.nowDateTime(), if you need only date javascript: gs.now()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 06:49 AM
You can use javascript:gs.now() as default value.
Thanks,
Sai.