When user adds adds a new row in UI (via Add button) date field should be prefilled with current date and time. How can I achieve it?
Use a Rule Set on the data structure and add the following Simple Data Rule:
AS:isnull(@MyDateColumn, date:date-time())
Add a dependency on Id
column.
This way every time the primary key is created (once) current date is set. In case this rule is ever recalculated (e.g. in a sequential workflow) use the value that was filled-in first (see the isnull
function).
1 Like