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.

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

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

Not applicable

did you try it on a new dev instance?

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.