Okay, this is what the PHP code looks like now at this point:
if (getLanguage() == 'dan') {
question('SP81');
$questions = valueList('SP81', NULL, 'label');
foreach ($questions as $idList) {
$questions = explode('+', $idList);
question($questions);}
} else {
question('SP82');
$questions = valueList('SP82', NULL, 'label');
}
I have pulled out the two random generators from the page (but they are still shown to be on page no. 3 - I assume because of being mentioned in the PHP code.)
The Danish survey is functioning without any issues but the other versions do not show anything neither an error message nor questions. The debug information in the Swedish version for example shows this [Content] Create question SP81
So the code should be correct as it chooses questions from SP82, the second random generator. Which should consequently mean that I made a mistake in what I put in SP82.
This is the content of the second random generator:
01 = SP03+SP23
02 = SP04+SP39
03 = SP05+SP32
04 = SP06+SP35
05 = SP07+SP40
06 = SP09+SP24
07 = SP10+SP27
08 = SP11+SP36
09 = SP12+SP29
10 = SP13+SP37
11 = SP14+SP26
12 = SP15+SP28
13 = SP16+SP33
14 = SP08+SP30
15 = SP17+SP25
16 = SP18+SP31
17 = SP19+SP34
18 = SP20+SP41
19 = SP21+SP38
20 = SP22+SP42
21 = SP43+SP44
22 = SP45+SP46
23 = SP47+SP48
24 = SP49+SP50
25 = SP51+SP52
Codes drawn per interview: 25
Type of drawing: equally distributed (draw without returning)