|
Whitebeam Object Definition
|
qaBuilder.questionDef
A description of a question for adding to a questionnaire.
Elements
The qaBuilder.questionDef struct has 11 elements:
Name | Type/Value | Range/Length | Description | pageID | string | | Required. An existing page ID in the currect questionnaire.
This specifies which page the question will be inserted to. | question | string | | Required. The text of the question being asked. | questionID | string | | Optional. An existing question ID in the currect questionnaire.
Specifies that the new question is to be inserted BEFORE
the question of this ID. | answerType | string | text, textarea, select, multiselect, radio, scale, checkbox | Required.
The type of form-element to be presented for this question. | choice | array of strings | | Optional. Required for select, multiselect, radio and checkbox
answerType.
Lists all of the answers in the required order. | default | string | | Optional. Either the zero-indexed number of the default answer (Applies
to select, multiselect, radio and checkbox types) or the default text
(Applies to text and textarea types) For select types, this string
may also be "seldummy" - See the seldummy variable below for details.
| seldummy | string | | Optional. If specified, and "default" is set to "seldummy" and the question
type is "select", then this string is used as the default display value
for the select dropdown. It does not qualify as an answer, and if no
value is set for "mandatory", then a generic default is supplied.
| rows | number | | Optional. The height of a textarea or multiselect form-element. | cols | number | | Optional. The width of text and textarea form-elements. | comment | string | | Optional. A comment string which can be placed with the question when
the questionnaire is being run. | mandatory | string | | Optional. If set to a non zero-length string, then an answer to the question
becomes mandatory. The string itself is the message to display is the
field is not filled. |
|
|
(loadtime : 9ms) |