Difference between revisions of "Open Question"

From Catglobe Wiki
Jump to: navigation, search
 
Line 333: Line 333:
  
 
|}
 
|}
ao_value_i: is the value of answer option ith, which is a positive integer, and must be placed at the beginning of the line. An open question must have at least 1 answer option.
 
  
ao_property_set: is the property set of the answer option (optional). It must contains the pre-defined properties:
+
ao_value_i: is the value of answer option ith, which is a positive integer, and must be placed at the beginning of the line. An open question must have at least 1 answer option.
<table width="657" cellspacing="0" cellpadding="2" border="1" style="border-collapse:collapse; border:1px solid #010101" class="tableintopic">
 
<tbody><tr valign="top" align="left">
 
<td width="295" valign="bottom" bgcolor="#C0C0C0" style="border:1px solid #010101;"><p class="bodytext"><strong class="specialbold">Answer Option Property </strong></p>
 
</td>
 
<td width="238" valign="bottom" bgcolor="#C0C0C0" style="border:1px solid #010101;"><p class="bodytext"><strong class="specialbold">QSL Keyword</strong></p>
 
</td>
 
<td width="125" valign="bottom" bgcolor="#C0C0C0" style="border:1px solid #010101;"><p class="bodytext"><strong class="specialbold">QSL Type </strong></p>
 
</td>
 
</tr>
 
<tr valign="top" align="left">
 
<td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">No multi</p>
 
</td>
 
<td width="238" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">NO_MULTI</p>
 
</td>
 
<td width="125" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p>
 
</td>
 
</tr>
 
  
</tbody></table>
+
ao_property_set: is the property set of the answer option (optional). It must contains the pre-defined properties:
ao_text: is the text of the answer option.
 
  
Example
 
  
QUESTION QOpen OPEN
 
  
What musical instrument can you play?
+
{| width="657" cellspacing="0" cellpadding="2" border="1" style="border-collapse:collapse; border:1px solid #010101" class="tableintopic"
 +
|- valign="top" align="left"
 +
| width="295" valign="bottom" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
 +
'''Answer Option Property'''
  
1:Guitar
+
| width="238" valign="bottom" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
 +
'''QSL Keyword'''
  
2:Piano
+
| width="125" valign="bottom" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
 +
'''QSL Type'''
 +
 
 +
|- valign="top" align="left"
 +
| width="295" valign="bottom" style="border:1px solid #010101;" |
 +
No multi
 +
 
 +
| width="238" valign="bottom" style="border:1px solid #010101;" |
 +
NO_MULTI
 +
 
 +
| width="125" valign="bottom" style="border:1px solid #010101;" |
 +
bool
 +
 
 +
|}
 +
 
 +
ao_text: is the text of the answer option.
 +
 
 +
Example
 +
 
 +
QUESTION QOpen OPEN
 +
 
 +
What musical instrument can you play?
 +
 
 +
1:Guitar
 +
 
 +
2:Piano  
  
 
3:Saxophone  
 
3:Saxophone  
 
  
 
[[Category:Question_Definition]]
 
[[Category:Question_Definition]]

Latest revision as of 11:07, 20 December 2011

Open Question

Syntax

QUESTION question_label OPEN [question_property_set]

question_text

ao_value_1:[ao_property_set] ao_text

...

ao_value_N:[ao_property_set] ao_text

Arguments

question_label: is the label of the question. It must follow the standard format of question label.

question_property_set: is the property set of the question (optional). It must contains the following pre-defined properties:


Question Property

QSL Keyword

QSL Type

End Points

POINTS

number

Back Button Visible

BACK_BUTTON_VISIBLE

bool

Next Button Text

NEXT_BUTTON_TEXT

string

Question Style sheet

QUESTION_STYLE_SHEET

number

Flash Height

FLASH_HEIGHT

number

Next Button Visible

NEXT_BUTTON_VISIBLE

bool

Close Button Visible

CLOSE_BUTTON_VISIBLE

bool

Close Button Text

CLOSE_BUTTON_TEXT

string

Back Button Text

BACK_BUTTON_TEXT

string

Layout

LAYOUT_ID

number

RPQ Status

ANSWER_SHEET_STATUS

number

End

END

bool

Dummy

DUMMY

bool

Flash Width

FLASH_WIDTH

number

Flash Path

FLASH_PATH

string

Export Position

EXPORT_POSITION

number

Export Length

EXPORT_LENGTH

number

Questionnaire Required Text

REQUIRED_TEXT

string

Point Text

POINTS_TRANSACTION_TEXT

string

Count down

COUNT_DOWN

number

Script

SCRIPT

string

Reset Button Visible

RESET_BUTTON_VISIBLE

bool

Reset Button Text

RESET_BUTTON_TEXT

string

Minimum

MIN_VALUE

number

Maximum

MAX_VALUE

number

Questionnaire Max Required Text

MAX_REQUIRED_TEXT

string

Questionnaire Min Required Text

MIN_REQUIRED_TEXT

string

Auto Arrange Answer Options

AUTO_ARRANGE_ANSWER_OPTIONS

bool

Answer Option Columns

ANSWER_OPTION_COLUMNS

number

Answer Option Rows

ANSWER_OPTION_ROWS

number

ao_value_i: is the value of answer option ith, which is a positive integer, and must be placed at the beginning of the line. An open question must have at least 1 answer option.

ao_property_set: is the property set of the answer option (optional). It must contains the pre-defined properties:


Answer Option Property

QSL Keyword

QSL Type

No multi

NO_MULTI

bool

ao_text: is the text of the answer option.

Example

QUESTION QOpen OPEN

What musical instrument can you play?

1:Guitar

2:Piano

3:Saxophone