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:pagestop [12.12.2014 12:56] alexander.ritteren:create:functions:pagestop [05.09.2020 13:29] – [pageStop()] sophia.schauer
Line 5: Line 5:
 This function prevents further contents of a questionnaire page being shown or executed. This function prevents further contents of a questionnaire page being shown or executed.
  
 +If there are other commands within a PHP code element in the questionnaire, ''pageStop()'' also prevents their execution.
  
 ===== Example ===== ===== Example =====
Line 10: Line 11:
 In the following example, ''pageStop()'' is combined with a screen out filter. This means further content (e.g. questions) can still be put on the screen out page. In the following example, ''pageStop()'' is combined with a screen out filter. This means further content (e.g. questions) can still be put on the screen out page.
  
-The filter shows the text element "screenout" and hides the next and back buttons for people who answered question SK01 with value 1 (younger than 18) or 7 (older than 65). This means the questionnaire is effectively terminated.+The filter shows the text element "screenout" and hides the Next and Back buttons for people who answered question SK01 with value 1 (younger than 18) or 7 (older than 65). This means the questionnaire is effectively terminated.
  
 Other elements (questions, PHP code, ...) can be put on the page beneath this PHP code. They can also be put on the questionnaire page by drag & drop. ''pageStop()'' ensures these elements are no longer shown to participants who do not qualify.  Other elements (questions, PHP code, ...) can be put on the page beneath this PHP code. They can also be put on the questionnaire page by drag & drop. ''pageStop()'' ensures these elements are no longer shown to participants who do not qualify. 
en/create/functions/pagestop.txt · Last modified: 07.12.2023 12:05 by empschul
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki