Developer forum

Forum » CMS - Standard features » Context values in Forms for DataLists

Context values in Forms for DataLists

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a situation where I need to write some data using Forms for DataLists.

In this form, I would like to capture the current DateTime and current UserID.

Can I define these as default values on the form instead of messing with the template? If so, what is the syntax? I have tried the same approach as for ItemTypes @User(ID) and  @Code(System.DateTime.Now)  but they are not executed. I believe I am missing something.

Thank you,

Adrian


Replies

 
Nicolai Pedersen
Reply

You have to write in the template.

BR Nicolai

 

You must be logged in to post in the forum