Default value: current date

LabKey Support Forum (Inactive)
Default value: current date Olivier  2015-05-11 08:31
Status: Closed
 
Hi,

I have a list with a date field: how can I set the current date as default value?

Thanks,
Olivier
 
 
Jon (LabKey DevOps) responded:  2015-05-11 17:21
Hi Olivier,

Out of the box, LabKey doesn't have anything that will auto-populate a field like date as a default, so you will need to create your own custom solution by having an input page (either a custom data entry page made in a wiki or a file-based module) or you would have to have some kind of Javascript script within a module that will trigger the page to fill in a default date value if a value isn't populated by the user via the UI.

Regards,

Jon