[[Rotation]]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:rotation [26.11.2014 16:03] – [Multiple Questions per Stimulus] alexander.ritteren:create:rotation [26.01.2015 07:12] alexander.ritter
Line 89: Line 89:
   // go through list of questions ID for ID   // go through list of questions ID for ID
   // and show corresponding question each time    // and show corresponding question each time 
-  foreach ($questions as $ID) { +  foreach ($questions as $id) { 
-    question($ID);+    question($id);
   }   }
 } }
Line 201: Line 201:
 </code> </code>
  
-**Advice:** Every time you use ''isset()'' to avoid a change later on in the order (e.g. by using the 'back' button), you can only use the variable (here: ''$pages'') once in the questionnaire. If you need to use more, vary the name of the variable, e.g. ''$pages1'' und ''$pages2''  +**Advice:** Every time you use ''isset()'' to avoid a change later on in the order (e.g. by using the Back button), you can only use the variable (here: ''$pages'') once in the questionnaire. If you need to use more, vary the name of the variable, e.g. ''$pages1'' und ''$pages2''  
  
 ===== Rotation of Question Blocks ===== ===== Rotation of Question Blocks =====
en/create/rotation.txt · Last modified: 12.08.2022 19:28 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki