Overview
The following method can be used if you have a set of chapters and you want them to be displayed in a given order. This implementation also allows you to enter all or a specific amount in a random order (for example you only want to enter 3 out of possible 5 of them).
In the attached example survey you would find a demonstration of the how to implement this type of logic.
In order to test the sample, please follow this manual on how to import the survey to your studio - http://support.dooblo.net/entries/22388573-How-to-import-a-survey
Important notes to notice in the example survey:
* The functions in the advanced script.
* The survey general jump rule:
In the survey general jump rule there is a call to the FixJumpOrder(inStartQ,inOrder,inFinalChapter,inRandomize,inMaxChaptersToDisplay,inPromptSelection) (which is found in the advanced scripts)
This function receives 6 parameters-
- inStartQ - the question to start with.
- inOrder- a string representing all the chapters by their names (as written in the chapter name)
- inFinalChapter - the name of the final chapter (as written in the chapter name).
- inRandomize - Boolean indicating if you would like to randomize the chapters or not.
- inMaxChaptersToDisplay - the amount of chapter you would like to display.
- Boolean indicating if you wish to prompt the selected chapter and their order (leave true for testing).
That’s it!
Visit us at: http://www.dooblo.net
Comments
Hi Anat,
I have already checked the "Randomized sub-chapters" check box in the Advance tab for the main Randomization chapter that holds the sub chapters. I don't think that the "Enter X out of Y chapters" example is what i need to do as i need to save the order in which those randomized chapters are being displayed in an interview and thus exported in the data file.
Please sign in to leave a comment.