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
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...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ 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!