This script will allow participants to see Choice question options, Grid rows, Grid columns and Page items in the randomized order but keeping certain items together (randomized within or in the order specified).
Example
This script will work on the following questions:
- Choice Questions (standard and visual)
- Single Choice Grids (standard and visual)
- Multi Choice Grids (standard and visual)
- Scale Slider Grids
- Single Choice Card Sorts: rows=cards, columns=categories
- Single Choice Magnetic Boards: rows=magnets, columns=boards
- Multi Choice Magnetic Boards: rows=magnets, columns=boards
- Allocation Grids
- Allocation Sliders: rows=items
- Pages: options=each item on the page (i.e. questions/text instructions)
The script will NOT work for reversing the columns of these Grid questions:
- Rank Order Grids
- Rank Order Sorts
- Allocation Grids
- Allocation Sliders
Detailed Steps
- Create your question/page as required.
- Select Randomize in the properties of the question/page.
- Copy the appropriate type and case script from below.
- Select the question/page in the Questionnaire Tree.
- In the Scripting section, click Edit Scripts.
- Paste the script into On Load tab.
- Change Q_NAME to the name of your question or page.
- Change # to one or more item numbers separated by a comma. E.g. 4,5 (Note: The numbers should be item positions, not precodes)
- Click Save.
- Validate and test your survey.
- If you have multiple groups you would like to keep together, repeat step 1 to 9.
Script Name: How do I keep certain options, Grid rows/columns, or page items together when randomized? (Power Surveys)
To ensure your script works as expected, always copy the original script from the script library found in the support portal. Failure to use the most up to date script from the script library may cause unexpected results.
*/
Type | Case | Script |
|
Keep options together but randomize them within the group | GroupItems(Q_NAME, #); e.g. GroupItems(Q1, 4,5); |
Keep options together in the order specified | GroupItemsNotRandom(Q_NAME, #); | |
|
Keep options together but randomize them within the group | GroupColumnItems(Q_NAME, #); |
Keep options together in the order specified | GroupColumnsNotRandom(Q_NAME, #); |
Comments
0 comments
Article is closed for comments.