Actions: Shuffle Positions

This action allows you to select a series of objects to be arranged differently each time the action is run. This is particularly useful for changing the order of answers in a test so that they are not always in the same place if someone has to take the test again.

Note:
The objects must be showing on the page to be shuffled and the shuffle will not happen until transitions have finished. It is therefore sometimes possible that the object becomes visible before the shuffle takes place. To avoid this, put the objects in individual frames and shuffle the frames. Then use Show After on the object to show the object momentarily after it’s container frameappears. This will give the Shuffle time to complete before the object is visible – see the Quiz example in the sample publication for examples.

Setting up the Shuffle action:

  1. Add the Shuffle Positions action to your trigger, as described in adding actions. The Shuffle Positions tab will automatically appear when you add the action or click on the tab to open it.

Note:
The On Show trigger is often used for this action, although any trigger can be used.

  1. The tab simply lists all the objects on your page and those on any Master Page it uses, with checkboxes alongside each.

image\ebx_1240442962.jpg

  1. Simply check the box alongside any object you want to be included in the shuffle.

Note:
For best results ensure the shuffled objects are all the same height and width and that they share a vertical or horizontal alignment. Opus simply swaps the positions of objects around and does not resize or reposition objects to make them fit into a different space.

  1. Click on the Apply button to save your changes.

Note:
If you are allowing users to return to a page to check/change their answers before submitting them you may want to shuffle the answers only once. You will need to keep a "first view" variable for each page which you set to true to start with and then set to false once the answers have been shuffled once. Make the Shuffle action coinditional on the variable being "true" using an If statement and you can make sure the shuffle only happens once.

Shuffle More than One Group

If you want to shuffle different sets of objecs on the same page you will need to set up a different shuffle action for each group or the positions will be get mixed up between distinct groups.

The shuffle can be triggered by the same event but there should be separate Shuffle actions in which you select only those objects which should be shuffled with each other.