Current date set on field
Current Date is an action used in the Rule Panel to automatically set the current date and time in one or more fields of a form. This action is typically triggered by an event, such as opening a form, clicking a button, or changing another field.
Properties and Explanation
Here are the steps to follow in order to use the Current Date action:
Field Name
Specifies the target field(s) where the current date should be set. You can select one or more fields using their Element IDs. The action will only set the date if the field is currently empty. The Field Name property uses a multi-select editor, allowing you to choose multiple fields at once.
For calendar/date picker fields, the date is set in the format:
YYYY-MM-DD HH:mm:ss.SSS
.For text fields, the date is set in a readable format:
MMM DD,YYYY, HH:mm:ss A
.
Example
Below is a screenshot of the Current Date action configuration, showing the Field Name property set for one or more fields:
In this example, the selected field(s) will be automatically filled with the current date and time when the action is triggered.
The action ensures that the date is only set if the field is empty, preventing overwriting existing values.
Last updated