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:functions:repeatpage [28.11.2014 11:44] alexander.ritteren:create:functions:repeatpage [28.11.2014 11:47] – [Example 2] alexander.ritter
Line 28: Line 28:
 A onetime probe is also possible if the respondent does not answer a question with the help of //repeatPage()//. In the following example, it is checked if a valid option in the selection question ''BB01'' was selected and if the items in the scale ''BC01'' were answered in full. A onetime probe is also possible if the respondent does not answer a question with the help of //repeatPage()//. In the following example, it is checked if a valid option in the selection question ''BB01'' was selected and if the items in the scale ''BC01'' were answered in full.
  
-If one of the questions was not answered in full, the text element "error_missing" is displayed and the page repeated. However only once, as was ensured by ''registerVariable()'', variable ''$rPG6'' and ''isset()'' at the beginning. +If one of the questions was not answered in full, the text element "error_missing" is displayed and the page repeated. However only once, as was ensured with ''registerVariable()'', variable ''$rPG6'' and ''isset()'' at the beginning. 
  
 If the questions are on page 6, the following PHP code must be placed at the top of page 7. If the questions are on page 6, the following PHP code must be placed at the top of page 7.
Line 41: Line 41:
  
   if ($failBB01 or $failBC01) {   if ($failBB01 or $failBC01) {
-    // be awarethat page 6 repeats/was repeated+    // be aware that page 6 repeats/was repeated
     $rPG6 = true;     $rPG6 = true;
     registerVariable('rPG6');     registerVariable('rPG6');
en/create/functions/repeatpage.txt · Last modified: 29.09.2020 17:07 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki