In case you want to randomize full pages, you can crate this with a PHP-code. Since the inclusion of the PHP code described here is already the 2nd step of the randomization, be sure to read the chapter Randomization with PHP-Code beforehand. This describes exactly how you need to create a Random Generator for randomization and where to place the PHP code on the page.
If the order of questions is to be varied in a more complex way, filters can quickly become confusing. In this case the PHP-function setPageOrder()
is helpful. With this function full pages can be varied.
$number = value('RG01'); // Random number gots drawn by RG01 if ($number == 1) { setPageOrder('q1','q2','mainStart-mainEnd','q3'); } elseif ($number == 2) { setPageOrder('q1','mainStart-mainEnd','q2','q3'); } else { setPageOrder('q2','q1','mainStart-mainEnd','q3'); }
Further explanaitions and examples can be found in the chapter with the reference to setPageOrder()
.