Default values in DATE and select fields

taubes

Member
Hi

Is there an easy way to provide the current date in a date_picker field as a default value and likewise the current username in a single_select as a default value?

Thanks so much as always,

Stefan
 

eugenio

Administrator
Staff member
Hi Stefan,
at the moment default values cannot be used for date fields and, about select_single, you can just choose a specific value or a value calculated through an SQL expression, so you can't get the current user. This might change in the next major release, though.

For the username, of course you can use the ID_user field type, which automatically fills the field with the current username, but I guess it is not what you want.

Best,
 
Top