Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:create:functions:repeatpage [28.11.2014 11:47] – [Example 2] alexander.ritteren:create:functions:repeatpage [06.12.2014 15:12] – [repeatPage()] alexander.ritter
Line 1: Line 1:
 ====== repeatPage() ====== ====== repeatPage() ======
  
-''void **repeatPage**([string Text Element])''+''void **repeatPage**([string textelement])''
  
 The function ''repeatPage()'' shows the previous page again. There is the option to display the text element in the style of an error message. The function ''repeatPage()'' shows the previous page again. There is the option to display the text element in the style of an error message.
  
-  * //Text Element// (optional)\\ If the ID of a text element is specified (created in **Text Elements and Labels**), then this text element is displayed as information at the beginning of the repeated page. The text element is formatted in exactly the same way as other notifications regarding missing/incorrect data. +  * //textelement// (optional)\\ If the ID of a text element is specified (created in **Text Elements and Labels**), this text element is displayed as information at the beginning of the repeated page. The text element is formatted in exactly the same way as other notifications regarding missing/incorrect data. 
    
 This function is particularly useful if the data submitted by the respondent is being assessed for validity. Many checks can be activated directly in the question or item (e.g. check whether all items in a scale were filled in, or if a certain text format was adhered to), but sometimes the check has to be programmed using PHP code. If this check turns out to be negative, a text element with a more suitable error message can be displayed using ''text()'' and the participant sent back to the previous page with ''repeatPage()'' This function is particularly useful if the data submitted by the respondent is being assessed for validity. Many checks can be activated directly in the question or item (e.g. check whether all items in a scale were filled in, or if a certain text format was adhered to), but sometimes the check has to be programmed using PHP code. If this check turns out to be negative, a text element with a more suitable error message can be displayed using ''text()'' and the participant sent back to the previous page with ''repeatPage()''
  
-**Note:** In order for repeatPage() to work correctly, the check for invalid answers must be put at the beginning of the questionnaire page which follows the checked question!+**Note:** In order for repeatPage() to work correctly, the check for invalid answers must be put at the beginning of the questionnaire page which follows the question checked!
  
  
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