Date#

To configure the widget, you need to perform the following actions:

The Date widget displays a field for the User to input a date, allowing for hints and restrictions to ensure only valid values are entered.

To configure the element, click on the edit icon .

A pop-up window titled “Element Settings” will open:

Fields for Widget Configuration#

Fill in the necessary fields to configure the widget.

“Required” – a checkbox that is manually filled with the left mouse button. It is intended to color the field red if the User has not filled out this widget.

“Visible Name” – a text field that is manually filled in using the keyboard. It allows you to specify a name for the widget.

“Parameter Name in Task” – a text field that is manually filled in using the keyboard. This field displays the text corresponding to the value of the specified Parameter of the selected Task. The User can change this value in the text field, and after saving the form, the new value will be recorded in the specified Parameter of the selected Task. This means that by making changes in the text field, the User can update the information in the Task, simply by entering a new value and saving the changes.

“Placeholder” – a text field that is manually filled in using the keyboard. It allows you to specify a placeholder text that will be displayed in the input field until the user starts entering a value.

“Class” – a text field that is manually filled in using the keyboard. It allows you to specify a CSS class that will be applied to the element. This allows you to change the style of the widget, such as color, size, or font.

“Regular Expression (Regexp)” – a text field that is manually filled in using the keyboard. It allows you to specify a regular expression for input validation.

“Validation Error Message” – a text field that is manually filled in using the keyboard. It allows you to specify the text that will be displayed to the User if the entered value fails validation.

“Hint” – a text field that is manually filled in using the keyboard. It allows you to specify an additional hint that will help the user understand what needs to be entered.

“Default Value” – a text field that is manually filled in using the keyboard. It allows you to specify a value that will be displayed in the input field by default.

Example of Filling Out#

Field NameValue
Checkbox "Required"
Visible NameSelect a date
Parameter Name in Taskevent_date
PlaceholderDD.MM.YYYY
Classinput-date
Regular Expression (Regexp)^(0[1-9]|[12][0-9]|3[01])\.(0[1-9]|1[0-2])\.(\d{4})$
Validation Error MessagePlease select a date between 01.01.2023 and 31.12.2023.
HintSelect an important date for your event.
Default Value2023-06-01

Result:

Example of Date Selection#

  1. Selecting a date using the pop-up calendar. This allows the User to choose a date from an interactive graphical interface.

    The User can navigate between months and years using arrows or drop-down lists to select the desired month and year.

    By clicking on a specific date in the calendar, the user automatically fills the date input field with the selected value.
  1. Selecting a date using manual input from the keyboard. The user clicks on the input field and starts typing the date in the specified format.

    When the cursor leaves the field or when attempting to submit the form, the system checks whether the entered date matches the regular expression or established rules.