Difference between revisions of "Single Question"
(jrfconvert import) |
|||
Line 1: | Line 1: | ||
− | + | | |
− | | ||
− | Single Question | + | ==Single Question == |
− | '''Syntax''' | + | '''Syntax''' |
− | QUESTION ''question_label ''SINGLE'' [question_property_set]'' | + | QUESTION ''question_label ''SINGLE''[question_property_set]'' |
− | ''question_text'' | + | ''question_text'' |
− | ''ao_value_1:[ao_property_set] ao_text'' | + | ''ao_value_1:[ao_property_set] ao_text'' |
− | ''...'' | + | ''...'' |
− | ''ao_value_N:[ao_property_set] ao_text'' | + | ''ao_value_N:[ao_property_set] ao_text'' |
− | '''Arguments''' | + | '''Arguments''' |
− | ''question_label'': is the label of the question. It must follow the standard format of question label. | + | ''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. It must contain the following pre-defined properties: | ''question_property_set'': is the property set of the question. It must contain the following pre-defined properties: | ||
− | |||
− | + | <table width="653" 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">Question Property</strong></p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" bgcolor="#C0C0C0" style="border:1px solid #010101;"><p class="bodytext"><strong class="specialbold">QSL Keyword</strong></p> | ||
+ | </td> | ||
+ | <td width="117" 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">End Points</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">POINTS</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Back Button Visible</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">BACK_BUTTON_VISIBLE</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Next Button Text</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">NEXT_BUTTON_TEXT</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">string</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Question Style sheet</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">QUESTION_STYLE_SHEET</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Flash Height</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">FLASH_HEIGHT</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Next Button Visible</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">NEXT_BUTTON_VISIBLE</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Close Button Visible</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">CLOSE_BUTTON_VISIBLE</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Close Button Text</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">CLOSE_BUTTON_TEXT</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">string</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Back Button Text</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">BACK_BUTTON_TEXT</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">string</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Layout</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">LAYOUT_ID</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">RPQ Status</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">ANSWER_SHEET_STATUS</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">End</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">END</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Dummy</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">DUMMY</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Flash Width</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">FLASH_WIDTH</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Flash Path</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">FLASH_PATH</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">string</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Export Position</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">EXPORT_POSITION</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Export Length</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">EXPORT_LENGTH</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Questionnaire Required Text</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">REQUIRED_TEXT</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">string</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Point Text</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">POINTS_TRANSACTION_TEXT</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">string</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Countdown</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">COUNT_DOWN</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Script</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">SCRIPT</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">string</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Reset Button Visible</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">RESET_BUTTON_VISIBLE</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Reset Button Text</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">RESET_BUTTON_TEXT</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">string</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Auto Arrange Answer Options</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">AUTO_ARRANGE_ANSWER_OPTIONS</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Answer Option Columns</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">ANSWER_OPTION_COLUMNS</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Open Answer Required</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">OPEN_ANSWER_REQUIRED</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Answer Option Rows</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">ANSWER_OPTION_ROWS</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">number</p> | ||
+ | </td> | ||
+ | </tr> | ||
− | + | </tbody></table> | |
+ | ao_value_i: is a positive integer defining the answer option ith's value, which must be placed at the beginning of the line. A single question has at least one answer option. | ||
− | 2: | + | ao_property_set: is the property set of the answer option (optional). |
+ | <table width="653" 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="242" valign="bottom" bgcolor="#C0C0C0" style="border:1px solid #010101;"><p class="bodytext"><strong class="specialbold">QSL Keyword</strong></p> | ||
+ | </td> | ||
+ | <td width="117" 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">Open Answer Options</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">OPEN_ANSWER</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top" align="left"> | ||
+ | <td width="295" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">Default Answer Option</p> | ||
+ | </td> | ||
+ | <td width="242" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">DEFAULT_ANSWER</p> | ||
+ | </td> | ||
+ | <td width="117" valign="bottom" style="border:1px solid #010101;"><p class="bodytext">bool</p> | ||
+ | </td> | ||
+ | </tr> | ||
− | + | </tbody></table> | |
+ | ao_text: is the text of the answer option. | ||
− | + | Examples | |
− | + | QUESTION QSingle SINGLE[COUNT_DOWN = 20;DUMMY=true] | |
− | + | ||
− | + | ||
+ | |||
+ | |||
+ | Please select which city you are living in | ||
+ | |||
+ | 1:[DEFAULT_ANSWER=true;]Ho Chi Minh | ||
+ | |||
+ | 2:Da Nang | ||
+ | |||
+ | 3:Hue | ||
+ | |||
+ | 4:Ha Noi | ||
+ | |||
+ | |||
+ | [[Category:Question_Definition]] |
Revision as of 11:17, 20 December 2011
Single Question
Syntax
QUESTION question_label SINGLE[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. It must contain the following pre-defined properties:
<tbody> </tbody>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 |
Countdown |
COUNT_DOWN |
number |
Script |
SCRIPT |
string |
Reset Button Visible |
RESET_BUTTON_VISIBLE |
bool |
Reset Button Text |
RESET_BUTTON_TEXT |
string |
Auto Arrange Answer Options |
AUTO_ARRANGE_ANSWER_OPTIONS |
bool |
Answer Option Columns |
ANSWER_OPTION_COLUMNS |
number |
Open Answer Required |
OPEN_ANSWER_REQUIRED |
bool |
Answer Option Rows |
ANSWER_OPTION_ROWS |
number |
ao_value_i: is a positive integer defining the answer option ith's value, which must be placed at the beginning of the line. A single question has at least one answer option.
ao_property_set: is the property set of the answer option (optional).
<tbody> </tbody>Answer Option Property |
QSL Keyword |
QSL Type |
Open Answer Options |
OPEN_ANSWER |
bool |
Default Answer Option |
DEFAULT_ANSWER |
bool |
ao_text: is the text of the answer option.
Examples
QUESTION QSingle SINGLE[COUNT_DOWN = 20;DUMMY=true]
Please select which city you are living in
1:[DEFAULT_ANSWER=true;]Ho Chi Minh
2:Da Nang
3:Hue
4:Ha Noi