---
schema_version: "1"
id: e2329034eb27b909b1ec2e1aca6fcb2bf51b869873f9ff2bce08ef441a324773
title: Add a Date Input Element to a Flexcard (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_add_a_date_input_element_to_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_a_date_input_element_to_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ea66f860a037001cc7ff2fb26f3f6fb23a3de48c7b6eae22ec9b362a1389c971
description: For the managed package runtime, add a Date Input element on a Flexcard to enable users to select a formatted date from a calendar widget. From the Properties panel, configure properties and custom attributes, add an action, and add conditions.
products:
  - Omnistudio
release: "264"
---
# Add a Date Input Element to a Flexcard (Managed Package)

For the managed package runtime, add a Date Input element on a Flexcard to enable users to select a formatted date from a calendar widget. From the Properties panel, configure properties and custom attributes, add an action, and add conditions.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d207765e46">
              <p style="margin-bottom:0;">Required Versions</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Required Versions" class="slds-cell-wrap" style="vertical-align:top;" headers="d207765e46 ">
              <p style="margin-bottom:0;">Available beginning Winter '22.</p>
            </td>

          </tr>
        </tbody>
      </table>

1. From the Flexcards tab, click a version of a Flexcard to open the Flexcard Designer.
2. From the Build panel, click **Inputs**, and drag the **Date** element onto the canvas.
3. (Optional) From the Properties panel, update the element name in the **Element Name** field.
4. Configure properties common to all Input elements:
    
    - (Optional) In **Field Binding**, bind the value of the input element to an existing or new data field. See [Bind a Flexcard Input Value to a Data Field (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_bind_a_flexcard_input_value_to_a_data_field.htm&release=264.0.0&type=5 "For the managed package runtime, bind the value of an Input element to a new or existing data field in your Flexcard's data source. When a user updates the input value, the data JSON updates. You can use the new data like any other piece of data from a data source. For example, update the value of an attribute sent from a parent to a child Flexcard based on user input.").
    - In **Field Label**, enter the label that appears next to the element.
    - (Optional) In **Placeholder**, enter temporary text that displays inside the input field and which suggest to the user what content to enter.
    - (Optional) Check **Required** if the user must enter or select a value for this input element.
    - (Optional) Check **Read-only** to disable the ability to modify the input values.
    - (Optional) In **Help Text**, enter helpful text about the purpose of the input field. This feature adds an info icon (i) next to the element's label, which when hovered over displays the text.
5. (Optional) Click into **Default Value** to select a default input value from a merge field. Or, enter a value as plain text. Enter a default value in the format specified in **Date Format**.
6. (Optional) Update the **Date Format**. Default is MM-dd-yyyy, which displays as `12-03-2021`. See [date-fns format](https://date-fns.org/v2.0.0-alpha.31/docs/format) for format options.
7. (Optional) To limit the user to a specific date range, set the **Minimum Date** and **Maximum Date**.
    
    Select a date in the past or future in the format specified in **Date Format**. For example, for December 1, 1990, if the format is `MM-dd-yyyy`, enter 12-01-1990, and if the format is `dd-MM-yyyy`, enter 01-12-1990. Leave **Maximum Date** empty for the current date.
8. (Optional) To configure additional properties available to the element, click **\+ Add New** in the **Custom Attributes** section. For each new attribute, perform the following tasks:
    
    1. Click into the **Attribute** field to select from an attribute in the dropdown. See [DatePicker Lightning Web Component ReadMe (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_datepicker_lightning_web_component_readme.htm&release=264.0.0&type=5 "For the managed package runtime, this page contains a DatePicker LWC ReadMe for each Vlocity release.") for available attributes.
    2. In the **Value** field, enter a value for the attribute.
9. To execute an action when a user interacts with the input element, click **\+ Add Action**, and see [Add a Click Event to a Flexcard Element (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_a_click_event_to_a_flexcard_element.htm&release=264.0.0&type=5 "For the managed package runtime, enable an element on a Flexcard to perform an action when clicked. Supported elements include Image, Block, Icon, and Toggle.").
10. (Optional) To add conditions that must be met for the element to display, see [Add Conditions to a Flexcard Element (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_conditions_to_a_flexcard_element.htm&release=264.0.0&type=5 "For the managed package runtime, display or hide data based on the value of a data field. For example, display an alert icon or supplemental text for escalated Cases. Apply conditions to any element listed in the Build panel of the Flexcard Designer.").
11. (Optional) To style your element, click **Style** to open the Style panel, and see [Style Flexcard Elements (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_style_flexcard_elements.htm&release=264.0.0&type=5 "For the managed package runtime, configure the look and feel of a Flexcard by styling individual elements, fields inside elements, and entire states. From the Style panel in the Flexcard Designer, design backgrounds, text, and borders; adjust heights, widths, and spacing inside and between elements; apply classes and inline styles; make your element responsive; and more.").