cancel
Showing results for 
Search instead for 
Did you mean: 

Setting current date/time as default value in extension field

Former Member
0 Kudos

Hi all,

Hopefully an easy one, how can I set a field value to default as, say the current date/time? I am creating an extension field with date/time field type and I want it to default the current date/time.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Dedeepya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sandico Use Context() library function to get the current date time

Former Member
0 Kudos

Hi Dedeepya,

I cannot seem to type in 'Context()' into the Default value field...do I need SDK to do this?

chandansb
Active Contributor
0 Kudos

Yes Sandwich, it is achievable via SDK only. All extension involving logic needs SDK. Here you want to pick current date.

Former Member
0 Kudos

Thanks both, did I mention I love these forums

Answers (0)