Set date field to today's date by default

JJG
Kilo Guru

Hello,

I have a date field on a form that I would like to be set to today's date by default.

I tried to set the default to: javascript:new GlideDate().getDisplayValue(); It doesn't seem to be working, what am I missing?

 

find_real_file.png

 

32 REPLIES 32

It's a date only field and also I don't think that's available in scoped apps.

And was already suggested above 😞


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Marcel_Schoppa
Tera Contributor

just "today()" seems to work

Anna T_
Tera Expert

In case anyone else has also tried all the options above to no avail...

javascript:new GlideDate();


does indeed work just fine, but you need to create a net new record to test with. (: