Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Rotate answer options/sub questions: Difference between revisions

From Catglobe Wiki
Cg van (talk | contribs)
Cg van (talk | contribs)
No edit summary
Line 15: Line 15:
I want to have Mirinda as the top answer option in the list and keep None of the above in its original position  
I want to have Mirinda as the top answer option in the list and keep None of the above in its original position  


[[Image:QuestionTips Rotate 2.jpg]] 
[[Image:QuestionTips Rotate 2.jpg]]   


== Solution  ==
== Solution  ==


Set the rotation range from 0-5 with rotation index is 3
Set the rotation range from 0-5 with rotation index is 3  


== Code ==
== Code ==
<source lang="javascript" line="1">
 
*Add a Single question to Questionnaire editor
*Go to menu Properties -&gt; Question scripts -&gt; Java script and input below script
 
<source lang="javascript">
quest.rotateAnswerOptions(0, 5, 3);
quest.rotateAnswerOptions(0, 5, 3);
</source>
</source>  
 
[[Image:RotateAnswerOptions.jpg]]

Revision as of 08:37, 5 January 2012

Rotate answer options/sub questions

In order to synchronize the answer option/sub question rotation among more than one questions

As a questionnaire creator

I want to control the rotation by setting explicitly the first item in a range after rotation

Example

I have a list of drinks as answer options

I want to have Mirinda as the top answer option in the list and keep None of the above in its original position

 

Solution

Set the rotation range from 0-5 with rotation index is 3

Code

  • Add a Single question to Questionnaire editor
  • Go to menu Properties -> Question scripts -> Java script and input below script
quest.rotateAnswerOptions(0, 5, 3);