Date & Time
This is a typical calendar control, in which users can enter date and time in the preferred format. However, the date and the time gets stored as per the format specified in the system preferences. The Date & Time field appears as a text box with a calendar icon () on the right-side in the text box. When you click the text box or the calendar icon (), the date picker is displayed as shown in the following screen shot:
You can specify the time by clicking the clock () icon.
- Form Items >Data Entry>DateTime
The following table provides information about the properties that are applicable to this form item:
# | Property | Description | Sample Values |
---|---|---|---|
1 | Form ID | Unique ID of the Form on which you want to place the Form Item. | ACCOUNT_STATEMENT_FORM |
2 | Item ID | Unique ID to the Form item. | DATETIME_FIELD785 |
3 | Item Type | To identify the item type in a form. | DateTime |
4 | Channel | Assigns the form item compatibility for various devices. | Desktop / Tablet / Mobile |
5 | Bundle Key | Name of the key associated with the property file which provides the localized label text for the current form item. | Common |
6 | Plain Label | Text entered in Plain Label field appears as the label of the form item without the resource bundle key translation. 18.1: If you are using the property files, leave the Plain Label field as blank. Display Name Key is the property-driven label key for the form item. 19.1: In Canvas 19.1, the Display Name Key field is a configuration-driven label key for the form item. See About Display Name Key and Plain Label from 19.1 and Managing Display Names for Forms for more information. | |
7 | Display Name Key | Transaction Date and Time | |
8 | Edit | Selected: Renders the Form in edit enabled mode. | Not applicable |
9 | Visibility | Selected: Shows the form item on the Form. | Selected |
10 | Help | Selected: Renders the form item with a help icon. | Selected |
11 | Anchor | Defines the size of the form item in terms of percentage (without % symbol). | 50 |
12 | Selected: Allows printing the form item while printing the form. | Selected | |
13 | Column Span | Occupies the specified number of item spaces horizontally for the current item. | 1 |
14 | Label Alignment | Indicates the alignment of the labels of the form items. | Top |
15 | Hide Label | Selected: Hides the label of the form item. | Selected |
16 | Mandatory | Selected: Shows the red asterisk ({}{*}) on the label of the form item, and converts the particular field as mandatory. | Selected |
17 | Conditional Mandatory | Selected: Shows the blue double asterisks ({}{}) on the label of the form item, and converts the particular field as conditional mandatory. | Selected |
18 | Add Icon |
| De-Selected |
19 | Event Wiring | The Event Wiring option enables you to assign various events for different set of actions. For detailed information on Event Wiring, refer Form Items Event Wiring. | |
20 | Switch | Enables you to switch from one form item to another form item along with the applicable properties and their values. To switch from one form item to another form item, execute the steps that follow:
| NA |
21 | Clone | Enables you to create a duplicate of the selected form item along with its applicable properties except for the Item ID. | 2 |
- Refer Adding Holidays to Date Field for more information on adding holidays to the date & time field.
- Refer Creating a New Date Format for more information on customizing a new date format.
- Refer Migrating Date Format for more information on migrating the date formats.
- Refer Showing Date Picker when Date Field is on Focus to know more about showing date picker when the date field is on focus.