- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 06:19 AM
Hi,
I have date field in a Catalog item form i want to auto populate the Sys date how is it possible.
Please help me out with the configuration steps for the same.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 06:24 AM
you want to auto-populate today's date as default value?
if yes then add this in the default value
javascript: new GlideDateTime().getLocalDate();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 06:24 AM
you want to auto-populate today's date as default value?
if yes then add this in the default value
javascript: new GlideDateTime().getLocalDate();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 06:25 AM - edited 12-04-2023 06:26 AM
Hi @kranthi2 ,
Update the default value of your variable as below:
javascript: new GlideDateTime().getDate()
Regards,
Shloke