Hello again! I tried to dive deep in the information that you recommended:
https://www.soscisurvey.de/help/doku.php/en:create:multilevel
I think for me would be suitable the usage of the randomUse() function. But nothing still works properly, please help.
This is my Randomization generator:
$questions = valueList('ZE26', NULL, 'label');
foreach ($questions as $identifier) {
question($identifier);
}
On the next page after it of the main questionnaire:
$codes = array_values(valueList('ZE26'));
$i = loopToPage('subStart', count($codes));
multiLevelDown('sub01', $codes[$i]);
// Specify that the ballots are not automatically stored.
randomUse('ZE26', array());
I created subquetionnaire: with page "subStart", that has to be looped.
For me still not clear:
1. How not only to loop page 10 times (number of provided "Yes/No" question), but also remove amount of loops, when the participant answered "No"
2. How to show the participant the questions about the particular metric, so how to specify which questions should appear on the loop pages, according to the Yes answers from the page 02.
Please, provide me with some PHP-code samples, I can work with. I went with it through hell for the last 3 days.
I am coping the explanation of my survey again, if this is needed:
We are talking about 159 pages with the same 5 questions.
I am evaluating (159) software metrics. I am asking the participant, on one page 02 about 10 randomly selected metrics:
1. Do you know the metric "X" ?
2. Do you know the metric "Y" ?
.
.
.
10. Do you know the metric "Z" ?
if the participant answers "Yes", then the page with 5 more questions about this metric should be displayed. So if the participant answers all 10 yes/No questions "Yes", then 10 more pages with similar 5 questions (just the name of the metric is different) are displayed. Main problem with the usual filters was, that if question was not shown at all (filtered out by randomization), the value() wan not identified, and the filters didn´t work.