Set default date on date field

PrandeepSharma
Tera Contributor

Hi,

I just created a new Date field that shows only when incident on hold. I am trying to set a default date using dictionaries default value, however none of the javascript GlideDateTime seem to work.

I just need to set the default value to be 6 days from current date. Please help

11 REPLIES 11

Community Alums
Not applicable

Note: Instead of : -- just use colon symbol 

Hi I added javascript: var gdt = new GlideDateTime(); gdt.addDays(6);gdt.getDate(); and is still blank

Community Alums
Not applicable

Hi, remove : and update it like below:

 

bhavaniy_0-1669108647338.png

 

Ye, still blank 😞

Community Alums
Not applicable

can you post the screenshot?