Current date/time auto-populate

Riya17
Giga Contributor

My requirement is to auto-populate the 'sys_created_on' in another custom field 'start date' which will be read-only on the same form only for new records.  Please help me make it working.

I have a BR.

Table : User Entitlement

When to run: after

condition: start date is empty

var gDatetime = new GlideDateTime(current.sys_created_on);
if (sys_created_on==' ') {
current.u_start_date = gDatetime;
}

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi riyak,

 

Notice the screenshots below

 

find_real_file.png

 

find_real_file.png

 

find_real_file.png

 

In my dev instance, the BR works correctly.

View solution in original post

11 REPLIES 11

Community Alums
Not applicable

did you try it on a new dev instance?

Community Alums
Not applicable

Hi riyak,

 

Notice the screenshots below

 

find_real_file.png

 

find_real_file.png

 

find_real_file.png

 

In my dev instance, the BR works correctly.