Node ConfigurationThe following fields are required to configure the node:
- Name: Allows you to customize the node name, which you can later view in the Studio workspace.
- Bot (required): Select from the dropdown the bot where the node will be executed. This bot must also contain the Step In node to which the date and time selected by the user will be sent.
- Next Step (required): Add or select from the dropdown the Step In node to which the date and time selected by the user will be sent.
-
Block Input (optional):Allows you to define whether the text box will be temporarily blocked while the component is displayed.
- True: Blocks the text box.
- False: Allows the user to enter text.
- Ref (required): Enter the name of the internal identifier where the date and time selected by the user will be stored.
- Label (optional): Defines the label or name that will be displayed to the end user in the form.
- Callback Label (optional): It is currently not necessary to configure this field, as it applies to the WhatsApp channel and the Date Time Picker component is only available for the Web channel.
-
Available Dates (optional): Indicates the variable containing the list of dates available for the user to select. Dates must use the ISO 8601 format, for example: 2024-03-21T13:30:00_02:00.
Please note: This field only accepts values sent through msg from a Function node. It is not compatible with Mustache and cannot be loaded directly from an Inject node.
- Timezone (optional): Allows you to select a specific time zone for the component. If you select an option, it will take priority over the time zone specified in Available Dates. In other words, if Available Dates includes a time zone, it will be replaced by the one selected in Timezone; if it does not include one, the selected time zone will be applied automatically.
- Disable Previous Dates: This option is enabled by default, but it is optional. When enabled, it disables dates before the current date and prevents the user from selecting them.
-
Enable Date Range (optional): Allows you to define the date range available for the user to select. When enabled, two required fields will be displayed and must be completed with dates in ISO 8601 format, without including the time:
- Date Range Min: Defines the earliest available date.
- Date Range Max: Defines the latest available date.
- Twelve Hour Clock (optional): Enabled by default. Allows times to be displayed in a 12-hour format using AM/PM.
You can download an example flow from the link.
In the following video, you can learn about all the properties available for configuring this node: