This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
en:create:functions:repeatpage [28.11.2014 11:47] – [Example 2] alexander.ritter | en:create:functions:repeatpage [06.12.2014 15:12] – [repeatPage()] alexander.ritter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== repeatPage() ====== | ====== repeatPage() ====== | ||
- | '' | + | '' |
The function '' | The function '' | ||
- | * //Text Element// (optional)\\ If the ID of a text element is specified (created in **Text Elements and Labels**), | + | * //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/ |
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 '' | 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 '' | ||
- | **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 | + | **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 |