Date Question

Date Question

A Date Question has the following properties:

Fields...

In some properties you can use fields as (part of the) value. You can use the button Fields... to insert fields into the property value.

Note

This feature is only available when the project containing the Form is configured with ITP/Create Model Package 3.2.19 or up.

Question text

This is the question as it is shown to the user when the form is filled out. You can use HTML instructions to lay out this text.

Read-only (not available in QForms)

Check this box to make the question read-only. When the form is filled out the default answer is shown and the end user cannot change this value.

Answer field

Answers to questions are stored in an answer field. This field can be used in the model document. Select the answer field into which the answer to this particular question will be stored. Refer to Answer fields for more information.

Help text

Help text can be added to a question to provide additional information to the end user. By default, a question mark will be shown next to the question. If the mouse pointer hovers over this question mark the help text is shown. Use HTML instruction to layout the help text.

Default answer

The end user will see the default answer in the answer field, if a default answer has been defined.

The following options are available:

Validation

QF_DateQuestion-Validation

Form

When the Validation is checked as "None" the answer to the question is not checked.

When "A non-empty answer is required" is checked the answer to the question needs to be filled in by the user, who is filling out the form. Otherwise, an error will occur.

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

If you specify date from Field make sure that the Field value has the format YYYYMMDD.

You can add the value from a Field to the "Error message text".

QForm

For QForms the option "A non-empty answer is required" is checked by default to ensure the end user fills in an answer. Otherwise, an error will occur for which the message can be specified in the "Error message text". You can add the value from a Field to the Error message text and you can use HTML instructions to lay out the text.

In addition, it is also possible to validate that the date specified in the answer is after and/or before a specific date. If it is not desired to validate if the end user has filled in an answer, the option None can be selected.

Note

Advanced

This feature is for advanced users only. Do not enter or change IDs on this tab if you do not understand 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, refer to the ITP/Server Manual chapter Integrating, section Form and Question IDs.

Note

The feature Reference is not available for QForms. Refer to Distinctions between Forms and QForms for more information.