Whitebeam Object Definition

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

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
pageIDstring  Required. An existing page ID in the currect questionnaire. This specifies which page the question will be inserted to.
questionstring  Required. The text of the question being asked.
questionIDstring  Optional. An existing question ID in the currect questionnaire. Specifies that the new question is to be inserted BEFORE the question of this ID.
answerTypestringtext, textarea, select, multiselect, radio, scale, checkbox Required. The type of form-element to be presented for this question.
choicearray of strings  Optional. Required for select, multiselect, radio and checkbox answerType. Lists all of the answers in the required order.
defaultstring  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.
seldummystring  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.
rowsnumber  Optional. The height of a textarea or multiselect form-element.
colsnumber  Optional. The width of text and textarea form-elements.
commentstring  Optional. A comment string which can be placed with the question when the questionnaire is being run.
mandatorystring  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.

Whitebeam release 1.3.36
(loadtime : 9ms)