This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:create:functions:repeatpage [14.05.2016 20:43] – [repeatPage()] admin | en:create:functions:repeatpage [10.07.2024 12:34] (current) – [Example 2] mokitul.fh-erfurt | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== repeatPage() ====== | ====== repeatPage() ====== | ||
| - | '' | + | '' |
| The function '' | The function '' | ||
| Line 26: | Line 26: | ||
| ===== Example 2 ===== | ===== Example 2 ===== | ||
| - | 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 '' | + | A onetime probe is also possible if the respondent does not answer a question with the help of '' |
| - | If one of the questions | + | If one of the questions |
| 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. | ||
| <code php> | <code php> | ||
| - | // only checked if $repeatedPG6 | + | // only checked if IV01_01 |
| - | if (!isset($rPG6)) { | + | if (value(' |
| // check, if the answer is missing (code -9) in the selection BB01 | // check, if the answer is missing (code -9) in the selection BB01 | ||
| $failBB01 = (value(' | $failBB01 = (value(' | ||
| Line 40: | Line 40: | ||
| $failBC01 = (count(getItems(' | $failBC01 = (count(getItems(' | ||
| - | if ($failBB01 | + | if ($failBB01 |
| // be aware that page 6 repeats/was repeated | // be aware that page 6 repeats/was repeated | ||
| - | | + | |
| - | registerVariable('rPG6'); | + | |
| // show previous page again | // show previous page again | ||
| repeatPage(' | repeatPage(' | ||