Loading
Omniscripts Date/Time Element (Managed Package)

Omniscripts Date/Time Element (Managed Package)

For the managed package runtime, enable users to select a date from a date picker and a time from a list by adding the Date/Time element to your Omniscript. Set the minimum and maximum dates, and the date and time formats.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

  1. Drag a Text element from the Build panel onto the canvas.
  2. In the Properties panel, give the element a name in the Name field.
  3. In Field Label, enter a label visible to the user.
  4. In Minimum Date, enter the earliest date the user can select from the date picker, such as 01-01-1950.
    Note
    Note

    The format entered must be the same as in the Date Format field. For example, to set the minimum date to January 1, 1950, if the Date Format is MM-DD-YYYY, you must enter 01-01-1950.

  5. In Maximum Date, enter the latest date the user can select from the date picker, such as 12-31-2019.
    Note
    Note

    The format entered must be the same as in the Date Format field. For example, to set the maximum date to December 31, 2019, if the Date Format is MM-DD-YYYY, you must enter 12-31-2019.

  6. In Date Format, enter the format to display the date. For example, if the format is MM-DD-YYYY, and the user selects January 3, 2020 from the date picker, the date displays as 01-03-2020. For more format options, see Day.js.
  7. In Time Format, enter the format to display the time, such as hh:mm a, which is the default.
    Note
    Note

    Enter h or hh for hour, m or mm for minute, s or ss for seconds, and a for am/pm. A single letter, such as h or m, has no leading zero. Remove the a to display 24 hour time. For example, hh:mm a displays 03:30 pm, h:mm a displays 3:30 pm, and hh:mm:ss. displays 15:30 01. For more format options, see Day.js.

  8. In Time Interval, enter the intervals within an hour the user can select from the time dropdown. For example, enter 15 for 15 minute periods within the hour such as 12:00, 12:15, 12:30, 12:45, and so on. The default interval is 30.
  9. In the Advanced Options section, select a Time Zone:
    • Select Local Timezone to use the timezone of the browser.

    • Select User Timezone to use the timezone set in the logged-in user's profile.

  10. (Optional) For additional properties, see Common Omniscript Element Properties Definitions (Managed Package).
  • Date/Time Properties (Managed Package)
    For the managed package runtime, Date/Time properties are configurable from the Properties panel when you select a Date/Time element. With the Date/Time element, enable users to select a date from a date picker and a time from a dropdown list in your Omniscript.
 
Loading
Salesforce Help | Article