Number Question

Number Question

A Number 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. 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 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 user. By default, a question mark will be shown next to the question. If the user who fills out the form hovers over this question mark the help text is shown. Use html instruction to lay out the help text.

Integral digits and Decimal digits

Add a number to limit the number of digits of which the answer may exist. In the example above, the maximum answer may consist of ten places in front of the decimal point, and two decimal places.

Default answer

If a default answer has been defined, the end user will see the default answer in the answer field. If a default answer is an actual number, you can check the radio button Value and fill out the number in integral and decimal digits of the default answer in the field next to Value. If it is also possible to show the content of a field as the default number. In that case you need to check the option From field and the appropriate field needs to be selected.

Validation

QF_NumberQuestion-Validation

Form

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

When "A non-zero 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 an answer has to be in between predefined values or fields. You can choose if this value should be 'greater than', or 'greater than or equal to' and 'less than', or 'less than or equal to'.

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. It is also possible to validate that the answer has to be in between predefined values or fields. You can choose if this value should be 'greater than', or 'greater than or equal to' and 'less than', or 'less than or equal to'. If it is not desired to validate if the 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 References is not available for QForms. Refer to Distinctions between Forms and QFormso for more information.