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
en:create:placeholders [20.08.2016 11:16] – [Predefined Placeholders] adminen:create:placeholders [27.07.2025 15:45] (current) – [Predefined Placeholders] admin
Line 32: Line 32:
 </code> </code>
  
-The PHP function ''[[:en:create:functions:prepare_input|prepare_input()]]'' is used place input fields freely. The chapter [[:en:create:inputs-single|Placing Input Fields Freely]] describes the use of placeholders in this case. +In addition, there are some predefined placeholders (see belowand the possibility to [[:en:create:inputs-single|freely place input fields]] (from other questions) using placeholders .
  
 ===== Placeholders and Filters ===== ===== Placeholders and Filters =====
Line 64: Line 63:
 </code> </code>
  
-===== Predefined Placeholders =====+4===== Predefined Placeholders =====
  
 The following placeholders are automatically available: these IDs are __not__ allowed to be used for user-defined placeholders. The content of the placeholders can be called up for further use by using the PHP function (see column on the right). The following placeholders are automatically available: these IDs are __not__ allowed to be used for user-defined placeholders. The content of the placeholders can be called up for further use by using the PHP function (see column on the right).
  
 ^Placeholder^Description^Variable in Data^PHP Function^ ^Placeholder^Description^Variable in Data^PHP Function^
 +|''%caseLanguage%''| Ongoing Questionaire Language [Language-Code] |LANGUAGE|''[[:en:create:functions:getlanguage]]''|
 |''%caseNumber%''|Ongoing Questionnaire Number|CASE|''[[:en:create:functions:casenumber|caseNumber()]]''| |''%caseNumber%''|Ongoing Questionnaire Number|CASE|''[[:en:create:functions:casenumber|caseNumber()]]''|
-|''%caseSerial%''|Questionnaire Authorization Code |SERIAL|''[[:en:create:functions:caseserial|caseSerial()]]''|+|''%caseSerial%''|Questionnaire Access Code |SERIAL|''[[:en:create:functions:caseserial|caseSerial()]]''|
 |''%caseToken%''|Internal Questionnaire ID|-|''[[:en:create:functions:casetoken|caseToken()]]''| |''%caseToken%''|Internal Questionnaire ID|-|''[[:en:create:functions:casetoken|caseToken()]]''|
 |''%reference%''|Reference Given to the Questionnaire|REF|''[[:en:create:functions:reference|reference()]]''| |''%reference%''|Reference Given to the Questionnaire|REF|''[[:en:create:functions:reference|reference()]]''|
 +''%pageNumber.abs%'' as long as no ''[[:en:create:functions:gotopage]]'' is used to jump to another page and a question or other content was displayed there.|||
 +|''%pageNumber.rel%''|Number of the current page counted since the beginning of the interview (not compatible with ''[[:en:create:functions:gotoquestionnaire]]'', ''[[:create:functions:multileveldown]]'' and the function **Collected Data** -> **Restart an Interview Case**)|||
 +
 +The following placeholders are available in some (not yet all) error messages, which can be customized under **Text Elements and Labels**. If the affected question has no number, the placeholder is left blank (removed).
 +
 +^Placeholder^Description^Example^Example^
 +|''%q.desc%''|Description of the question(s) concerned|question 1|questions 2,3|
 +|''%(q.desc)%''|Description in brackets|(question 1)|(questions 2,3)|
 +|''%q.list%''|Number of the question(s) concerned|1|2,3|
 +
 +
  
 The following placeholders are available within an item or option (e.g., in the item text). The numbering helps, e.g., to give randomly rotated options continuous numbers. The following placeholders are available within an item or option (e.g., in the item text). The numbering helps, e.g., to give randomly rotated options continuous numbers.
Line 90: Line 101:
 |''%imprint%''|HTML code for the footer/contact information| |''%imprint%''|HTML code for the footer/contact information|
 |''%progress%''|HTML code for the progress bar| |''%progress%''|HTML code for the progress bar|
-|''%head%''|HTML code for the header in the layout template|+|''%head%''\\ ''%%<link type="placeholder" href="head">%%''|HTML code for the header in the layout template\\ (HTML compliant variant)|
 |''%questionnaire%''|HTML code for the content in the layout template| |''%questionnaire%''|HTML code for the content in the layout template|
  
en/create/placeholders.1471684565.txt.gz · Last modified: by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki