Developer FAQ

I have a date field on datatype form. How can I get the current date and time as its default value?

Answer:

To have the current date and time as the default value in a date field:

  1. Edit the data type and edit the date field.
  2. On the Advanced tab, click the Default value button and select the Composite.Utils.Date.Now function.

This will ensure new records have 'now' as their default value.