Skip to main content
Version: 1.28 (Current)

Add Date Time Picker

Audience: Low-code Engineers

Skill Prerequisites: Forms, Tokens

Adds a date picker, time picker, or date and time picker to a Dynamic Field Container when the form loads. It works like a Date Time Picker field placed in the form builder.

See Dynamic Fields for how dynamic fields work and how to set up the container.

Typical Use Cases​

  • Ask for a date for each item in a list, for example a delivery date for each order line
  • Add a follow-up date or appointment time that only some users need

Don't use it to​

Action NameDescription
Add Date and Time (Deprecated)The older date picker.

Input Parameter Reference​

This action has the common parameters, except Secure Input, Readonly and the custom validators. It also has:

ParameterDescriptionSupports TokensDefaultRequired
IsEnabledWhen unchecked, the field is disabled. Enable Conditionally overrides it.NoCheckedNo
Picker TypeDate and Time, Date or Time. In expression mode, use dateandtime, date or time.YesDate and TimeNo
Client FormatHow the value is displayed, as a .NET date and time format, for example dd/MM/yyyy or HH:mm.Yesempty stringNo
Allow InputWhen checked, users can also type the value instead of picking it.NoUncheckedNo
Disable DatesDate pickers only. None, In The Past or In The Future, to block all past or all future dates.YesNoneNo
First Day of the WeekDate pickers only. Sunday or Monday.YesSundayNo
Disable WeekendsDate pickers only. When checked, Saturdays and Sundays can't be picked.NoUncheckedNo
InlineWhen checked, the calendar is always shown instead of opening when the field is clicked.NoUncheckedNo
Allow dates outside constraints rangeDate pickers only. When checked, an initial value outside the minimum and maximum is still shown.NoCheckedNo
Timepicker 24 hour modeTime pickers only. When checked, times use the 24-hour clock without AM/PM.NoUncheckedNo
Minimum DateDate pickers only. The earliest date allowed, as yyyy-MM-dd, for example [DateTime:Now|yyyy-MM-dd]. Hidden when Disable Dates is In The Past.Yesempty stringNo
Maximum DateDate pickers only. The latest date allowed, as yyyy-MM-dd. Hidden when Disable Dates is In The Future.Yesempty stringNo
Minimum TimeTime pickers only. The earliest time allowed, as HH:mm.Yesempty stringNo
Maximum TimeTime pickers only. The latest time allowed, as HH:mm.Yesempty stringNo
Minute IncrementTime pickers only. The step for minutes, for example 15.Yes5No
Flatpickr Options Override (javascript object)Advanced. A JavaScript object with flatpickr options that override the settings above, for example {weekNumbers: true}.Yesempty stringNo

"Date pickers" means Date and Date and Time. "Time pickers" means Time and Date and Time.

Output Parameters Reference​

ParameterDescription
Field ID Token NameOptional. Token that receives the cleaned field ID. If empty, the ID is saved in [<FieldId>:Name].

When the form is submitted, the value is available in [<FieldId>], with the same extra tokens as a Date Time Picker placed in the form builder, such as [<FieldId>:Iso], [<FieldId>:Date], [<FieldId>:Time], [<FieldId>:Year], [<FieldId>:Month], [<FieldId>:Day] and [<FieldId>:Formatted].

Examples​

tip

To understand how to use the below examples, please see Running Examples.

1. Add a required delivery date that can't be in the past​

Add this action to the form's On PreInit or On Init actions. It adds a date picker to the ExtraFields container that blocks past dates and weekends.

{
"Title": "Add Date Time Picker",
"ActionType": "AddDateTimePicker",
"Description": "Add the delivery date",
"Condition": null,
"Parameters": {
"ContainerId": "ExtraFields",
"FieldId": "DeliveryDate",
"FieldName": "Delivery date",
"InitialValue": "",
"IsEnabled": true,
"PickerType": {
"Expression": "",
"Value": "date",
"IsExpression": false,
"Parameters": {}
},
"ClientFormat": "dd/MM/yyyy",
"AllowInput": false,
"DisableFutureOrPast": {
"Expression": "",
"Value": "past",
"IsExpression": false,
"Parameters": {}
},
"FirstDayOfWeek": {
"Expression": "",
"Value": "monday",
"IsExpression": false,
"Parameters": {}
},
"DisableWeekends": true,
"IsRequired": "true",
"FieldIdTokenName": ""
}
}

Revised 09/25/2026