Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to auto populate a date field in a service catalog

Thereza Van der
Tera Contributor

Hi everyone 🙂

 

I want to have a date field in a catalog item that is automatically populated with the current date as soon as the catalog item is opened.

 

What is the best way to do this?

 

 

Regards

Thereza

 

1 ACCEPTED SOLUTION

Michael Jones -
Giga Sage

On your variable, on the default value tab, enter a script like this: 

javascript: new GlideDate(): 

 

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

View solution in original post

2 REPLIES 2

Dr Atul G- LNG
Tera Patron

You can use client script

https://www.servicenow.com/community/itsm-forum/how-to-set-current-date-in-the-date-field/td-p/52637...

https://www.servicenow.com/community/secops-vr-forum-read-only/auto-populate-current-date-on-date-fi...

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Michael Jones -
Giga Sage

On your variable, on the default value tab, enter a script like this: 

javascript: new GlideDate(): 

 

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!