Understand date-time field

Understand date-time field

The date-time field enables your users to enter a date and time. It features a date-time picker that enables your users to select a date and time. Alternatively, they can type the date and time. The selected/typed date-time value appears as per the date format set in your app's settings.

Experience while entering data

  • When a user accesses your form from a web browser: Clicking in the date-time field's input area will open the date-time picker. The current date comes highlighted, and the picker auto-selects the time at which the user opened the picker. Your user can select the required date and time in a few clicks.
  • When a user accesses your form from a phone/tablet: Tapping in the date-time field's input area will open the date-time picker that auto-selects the current date and time. Your user can select the required date and time by individually selecting the month, date, year, hour, minutes and seconds, and then tapping Done.

Features

You can perform the following customizations for the date-time field on a form:

Refer to this section to learn about the customizations for the date-time field in reports.

Allowed days

You can customize the date-time field such that it accepts a date that falls on an allowed day of the week. Learn how

For example, you may allow your users to select a date that falls on a Monday or Wednesday.

  • When a user accesses this date-time field from a web browser, dates that do not fall on a Monday or Wednesday will appear greyed out and will be disabled in the calendar. If a user types a date that does not fall on an allowed day, form submission will fail and the user will be prompted a follows:
    1. The Invalid entries found message will appear in a pop-up window.

    2. Clicking Okay will close this pop-up window and display a message below that date-time field.

  • When a user accesses this date-time field from a phone/tablet, they won't see any indication for days that are not allowed. However, if they select a date that does not fall on an allowed day, form submission will fail and the user will be prompted a follows:
    1. The Invalid entries found message will appear in a pop-up window.
    2. Clicking Dismiss will close this pop-up window and display a message below that date-time field.

Allowed hours

You can customize the date-time field such that it accepts a time that falls during the allowed hours. Learn how

For example, you may allow your users to select a time that falls between 10:00 to 16:00 (i.e., 10:00 am to 4:00 pm).

  • When a user accesses this date-time field from a web browser and selects a time that is not within the allowed hours, form submission will fail and the user will be prompted a follows:
    1. The Invalid entries found message will appear in a pop-up window.

    2. Clicking Okay will close this pop-up window and display a message below that date-time field.

  • When a user accesses this date-time field from a phone/tablet, they won't see any indication for hours that are not allowed. However, if they select a time that does not fall during the allowed hours, form submission will fail and the user will be prompted a follows:
    1. The Invalid entries found message will appear in a pop-up window.
    2. Clicking Dismiss will close this pop-up window and display a message below that date-time field.

Initial value

Initial Value for a date-time field refers to the date-time value that comes set when your users access your forms to submit an entry. Learn how to set initial value for date-time fields.

Setting an initial value will not prevent your users from editing it and entering a different date and time. If you want the date-time field to be set with the current date and time when your users access your form, you must add a form workflow.

Other field properties

Report-level customizations

By default, when your users access a date-time field in reports, they see the Full Date. You can customize the appearance of the date values as follows:

  • Set the Display Option: You can enable your users to view one of the following values: Full DateDay of month, Month, Year, Week Day (Monday, Tuesday, etc.), Date Only, or Time Only​.

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com