Date Time Picker
A datetime picker is used to select a day and a time.
Overview
The Date Time Picker component offers visual displays in day, week, or month views, handling one-time and recurring appointments. Use the straightforward built-in appointment object or tailor your appointment logic with Flow Builder for advanced customization.
Changing the Properties
Defining a Type
The "Type" property lets you control how users interact with your Date Time Picker:
Radio Buttons: Users can select only one view at a time (day, week, or month). This is ideal for focusing attention on a specific timeframe.
Checkboxes: Users can choose multiple views simultaneously (e.g., week and month views). This offers flexibility for seeing appointments across different time scales.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FIj2HgQp5UWU2tGWyOy55%252F2024-04-15_20-27-25.png%3Falt%3Dmedia%26token%3D6fa2b314-aa4d-4916-aca0-ba4045377bf8&width=768&dpr=4&quality=100&sign=4426492&sv=1)
Choosing a Variant
Select the variant that best suits how your users need to see their schedules:
Daily: Focus on a single day's events with a detailed view.
Weekly: Get a broader overview of the entire week.
Monthly: See the big picture with a full-month calendar layout.
Inline: Embed the picker directly within a page for streamlined input.
Timeline: Visualize events and appointments along a horizontal timeline.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FpAss0AnwXkg0lkIYopgP%252F2024-04-15_20-28-18.png%3Falt%3Dmedia%26token%3D02fffc10-46d8-4a82-8920-f2b149a19fe5&width=768&dpr=4&quality=100&sign=a80b3669&sv=1)
Set Start Time and End Time
Easily control the initial time range displayed by your Date Time Picker. Here's how:
Set Start Time: Choose the time your calendar should open by default.
Set End Time: Indicate the default endpoint of the visible time range.
Make it Dynamic (Optional): Use the "Mapped" icon to link these times to other data for flexible, automated updates.
Add Disabled Date Time (if needed)
You can set a disabled date time if needed. End-users won't be able to book a disabled date time.
Advanced Options: Customizing Your Date Time Picker
Go beyond the basics with these advanced settings to tailor the Date Time Picker to your exact needs:
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252Fo6pLawFlGoZZRISZFimR%252F2024-04-15_20-26-35.png%3Falt%3Dmedia%26token%3D303f5c5f-28d6-45d0-925f-4dc1539bd00a&width=768&dpr=4&quality=100&sign=c1f57510&sv=1)
Adding Interactions
The Interactions panel lets your Date Time Picker react dynamically to user actions.
Let's break down the key interaction type:
On Change: This is your trigger. When a user interacts with the component (like selecting a date and time), the "On Change" interaction lets you define what should happen next. Here are some possibilities:
Validation: Check if the selected date/time meets specific criteria (e.g., not in the past).
Launch a Flow: Initiate a more complex process, like creating an appointment record.
Display a message: Provide users feedback or instructions based on their selection.
List of all interactions available.
Think of it like this: The "On Change" interaction allows you to build a Date Time Picker that actively guides your users and adapts to their choices.
You can use the Date Time Picker attributes directly within your flows to create or update records. For example, you'd reference these attributes to set the values of date/time fields when using the Update Records element.
Styling the Date Time Picker
Spacing
Margin (top, right, bottom, left): Controls the external spacing around the component, creating separation from other elements in your flow.
Padding (top, right, bottom, left): Controls the internal spacing between the component's edges and content (such as the input field and calendar).
Border
Size: Sets the thickness of the border surrounding the date time picker.
Style: Specifies the border's appearance (e.g., solid, dashed, dotted).
Color: Sets the border's color.
Radius: Controls how rounded the corners of the component are.
Size
Width: Controls the horizontal width of the date time picker.
Height: Controls the vertical height of the date time picker.
Overflow: Dictates how content is handled if it exceeds the picker's dimensions (options might include 'visible', 'hidden', or 'scroll').
Header
Background Color: Sets the background color of the header area (which likely contains navigational elements for the calendar).
Label
Color: Sets the label's text color associated with the date time picker.
Font Size: Controls the size of the label's text.
Font Style: Sets the label's text style (e.g., normal, italic).
Font Weight: Controls the label's text boldness (e.g., normal, bold).
Horizontal Alignment: Determines the label's horizontal position relative to the input field (e.g., left, center, right).
Examples
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FBulFA4pqFXqng7p1Di5v%252F2022-10-18_11-46-40.png%3Falt%3Dmedia%26token%3Ddbae7318-b2d5-4604-b46a-bd743a9bfd5d&width=768&dpr=4&quality=100&sign=b3fa031c&sv=1)
Last updated