Understand date field

Understand date field

The date field enables your users to enter a date value. They can either use a date picker or type the required date value. The date field displays the date as per the date format and time zone set in your app's settings. Below is how a date field looks on your form:

  • When a user accesses from a web browser:

  • When a user accesses from a phone or tablet:

When to use this field 

Use a date field if you want to enable your users to enter a particular date. When you want to enable your users to enter a date as well as a time value, you must add a date-time field to your form

Experience while entering data

  • When a user is using a web browser, clicking in the date field's input area will open the date picker. The current date comes highlighted. Your user can select the required date in a few clicks.

  • When a user is using a phone or tablet, tapping in the date field's input area will open a calendar that auto-selects the current date. Your user can select the required date by individually selecting the month, date and year, and then tapping Done.

Features

You can perform the following customizations for the user experience of the date field on a form:

Set allowed days

You can customize the date 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 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 with an error message.
  • When a user accesses this date field from a phone or tablet, dates that do not fall on a Monday or Wednesday will appear greyed out and will be disabled in the calendar. The user can select a date that falls on an allowed day.

Set initial value

Initial value for a date field refers to the date value that comes set when your users access your forms to submit an entry. The initial value can either be the current date or a particular date. Learn how

Imagine that you are building an app to manage the travel expenses of your employees, where the  Expense Form accepts details such as Expense date, Amount and Purpose. You can help your employees save time by pre-defaulting the date field with the current date. This is achieved by selecting zoho.currentdate as the initial value for that date field in your form.

Setting an initial value does not prevent your users from entering a different date.

Other field properties

Report-level customizations

By default, when your users access a date 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 the Full DateDay of month, Month, Year, Week Day (Monday, Tuesday, etc.), or Month & Year.

Share this post : FacebookTwitter

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

Write to us: support@zohocreator.com