0

Date Input

Description

This part allows end users to enter a date in an application or select a date from a dropdown calendar.

Use

This part allows end users of an application to enter a date manually or select a date from a selectable calendar. If the end user selects a date using the date picker, the system formats the date according to the provided part settings.

Editor Fields

Basic Tab Options

Field Name Description Type/Options Optional/Mandatory
Caption This is text that appears in front of the date input field. Text Optional
Data object This is the name of the data object that stores the selected or entered date. Data Object Mandatory
Input Display format This is the format in which the end-user should enter the date.
  • If the end-user uses the date picker the system will display the date in the the input field in the specified format.
  • If the end-user enters the date manually, they must use the specified format.
If the end-user enters a date in a format other than the specified one, the browser will display a popup warning message. 

mm = month
dd = day
yyyy = year
Dropdown Selection Mandatory
Submit on select A check in this checkbox indicates the system should automatically submit the selected/entered date value. Yes | No Optional
Auto format date If you check this checkbox the system adds a CSS styling class called "autoformatdate" to the input page. This makes it easier for you to style date input fields.

Note: You must create a CSS stylesheet containing this style class before the system will update the appearance of the input field.
Yes | No Optional
Min year This setting allows you to limit the dates the date picker displays to only those after the specified year. 

The input format is yyyy | -y(yy) | +y(yy) and the default year is 1900.

Examples:
  • If you enter 1950, the system will only display dates from 1950 on.
  • If you enter -100, the system will display all years 100 years prior to the current year.
  • If you enter +2, the system will display dates starting 2 years in the future from the current date and beyond.
Note: This setting is a guide for which years to display rather than a validation that the end-user entered the correct date. End-users could still enter a date prior to the configured Min year.
Number Optional
Max year This setting allows you to limit the dates the date picker displays to only those before the specified year. 

The input format is yyyy | -y(yy) | +y(yy) and the default: is +10.

Examples:
  • If you enter 1950, the system will display only dates up to 1950.
  • If you enter -100, the system will display dates up to 100 years before the current date. 
  • If you enter +2, the system will display dates up to 2 years past the current date.
Note: This setting is a guide for which years to display rather than a validation that the end-user entered the correct date. End-users could still enter a date prior to the configured Max year.
Number Optional
Hide calendar If you select this option the system will remove the select date/calendar icon. End-users can only enter a date manually. Checkbox Optional
First day This allows you to select the first day of the week. The default first day of the week is chosen based on the selected locale or Sunday. Options Optional
Day This allows you to set which days of the week the user can select. All days allows end-users to select all days of the week. Options Optional
Locale This allows you to set the locale; for example, NL, DE, FR. If you leave it empty the system uses default settings. If you set a locale you must also load the corresponding locale JS file, e.g. /lncore//s/jquery-ui-1.8.12/ui/i18n/jquery.ui.datepicker-nl.js. Text Optional

Validate Tab Options

Field Name Description Type/Options Optional/Mandatory
Type This allows you to have the system trigger the display of an error message based on parameters you define:
  • mandatory: This means the end-user must provide a value or the system will display an error message.
  • numericpercentagecurrency: These mean that the value the end-user enters must be a number and may contain a comma or dot as decimal character. This validation rule can be used when the data-object-type is set to text. This combination allows the user to enter decimal number and allows users to enter a different decimal point (e.g. comma).
  • time: This means the input must be a time string--hh:mm (12:14, for example) or hhmm (1214) are both allowed
  • custom: This allows the user to set a custom validation parameter. 
  • email: This means the value the end-user enters must contain an '@' symbol.
  • date: This means the input must be a date string; mm/dd/yy, for example.
Options Optional
Condition This is only required when type=custom--when you set a custom validation parameter. It tells the system under which condition to display a validation message. Text Conditional
Message This is the message the system displays to the end-user if a validation rule is not met. The system displays the message associated with the first violated rule. Text Optional

Advanced Tab Options

Field Name Description Type/Options Optional/Mandatory
Events These are the JavaScript events that should be attached to the date picker. Text Optional
Disabled This parameter indicates whether the input field is disabled or not. If the field is disabled, the end-user cannot change the displayed value. Yes | No Optional
Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 5 mths agoLast active
  • 33Views
  • 3 Following

Home