Date Question

To answer a Date Question, the end user can select a date with a date picker.

The date picker shows only a specific subset of years: 10 years before and after the currently selected date. If you need to enter a date outside of this range, either enter the date manually or select a year closest to the required one, so that the selection window gets updated.

When you add the Date Question, the Add item - Date Question panel appears, in which you are prompted to specify two required properties: Question text and Answer field. Only after filling out these required fields, you can edit the question further.

In some properties, such as Question text, Help text, or Default answer, you can also use Fields as part of the value. The Add field option is available when you create a new answer or edit an existing one.

This type of question has the following properties:

Question text

The Question text field displays the question to the end user. You can use HTML syntax to format this text.

Read-only

Select this option to make the question read-only. When the Form is filled out, the default answer is displayed, and the user cannot change this value.

This option can be used in Forms only.

Answer field

Answers to questions are stored in Answer field. This field can be used in the Master Template document. Click Select to select the location to save the answer to this particular question. The available answer fields are shown in a drop-down list. The list of available answer fields can be configured in KCM Repository using Field Sets.

Help text

Help text can be added to a question to provide additional information to the end user. By default, an info icon is displayed next to the question. If the end user moves the pointer over this info icon, the help text appears. Use HTML syntax to format this text.

Default answer

If a default answer has been defined, the end user can see it in the Answer field.

The following options are available:

  • None. No initial date is used and a blank data selection is presented to the end user.
  • Current date. The date when the form is filled in is used as the initial value.
  • Specific date. The specified date is used as the initial value.

    The format of the date depends on the regional options of the system you are running the editor on.

  • From field. The content of the specified field is used as the initial value.

Validation

Form

When None is selected on the Validation tab, the answer to the question is not validated.

When A non-empty answer is required is selected, the end user is prompted to fill in the answer to the question. Otherwise, an error occurs.

It is also possible to validate that the date specified in the answer is after or before a specific date. When specifying the date in Field, ensure that the Field value has the format YYYYMMDD.

QForm

When None is selected on the Validation tab, the answer to the question is not validated.

In QForm, the option A non-empty answer is required is selected by default to ensure the end user fills in an answer. Otherwise, an error occurs.

It is also possible to validate that the date specified in the answer happens after or before a specific date.

Error message text

You can specify the message of the error displaying to the end user in the Error message text field and format this text by using HTML syntax. In addition, you can add the value from a Field.

Advanced

This feature is for advanced users only. We recommend that you do not enter or change IDs on this tab unless you are aware of the implications.

Every question in a Form is associated with a unique identifier (ID). If Question IDs are not present in a Form, they are automatically generated when a Form is saved. You can change such an ID manually on this tab. For more information, see the "Integration" chapter in the Kofax Communications Manager Core Developer's Guide.