Field with Today's Date on Record Producer

richelle_pivec
Mega Guru

I need to add a field to the record producer that auto-populates with today's date/time when the team member opens it to fill it out. It needs to be noted for the team member that they are authorizing the request at a specific date and time.

Is this something I should do through a catalog client script? Is it something I can do through the default value field on the "date" field on the record producer? Any help on how to do this would be greatly appreciated.

thanks,

Richelle

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

HiRichelle,

 

You can set the default value for the variable as below

 

gs.getDateTimeNow(); //if it is a date/time field

gs.getDateNow(); //if it is a date field

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

View solution in original post

4 REPLIES 4

Jaspal Singh
Mega Patron
Mega Patron

HiRichelle,

 

You can set the default value for the variable as below

 

gs.getDateTimeNow(); //if it is a date/time field

gs.getDateNow(); //if it is a date field

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Perfect, thanks!

Richelle

Siddhant_J
Giga Contributor

The correct answer is 

 

gs.nowDateTime()

 

gs.nowDate()

RayRoulstone
Tera Expert

How would I do this if I needed a date 10 days in the future?