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
Last revisionBoth sides next revision
en:create:functions:answersprint [23.03.2015 22:15] alexander.ritteren:create:functions:answersprint [03.09.2015 21:14] – [Tips] admin
Line 2: Line 2:
  
 A whole range of questions that are asked in the questionnaire can be displayed with the help of the ''answersPrint()'' function. This means the participant can be shown a print view of their own questionnaire.  A whole range of questions that are asked in the questionnaire can be displayed with the help of the ''answersPrint()'' function. This means the participant can be shown a print view of their own questionnaire. 
- 
-Mithilfe der Funktion ''answersPrint()'' kann eine ganze Reihe von Fragen, die im Fragebogen abgefragt wurden, dargestellt werden. So kann man dem Teilnehmer eine Druckansicht des eigenen Fragebogens zeigen. 
  
 Use the ''[[:en:create:functions:option|option()]]'' function to define a section of the questionnaire (see example).  Use the ''[[:en:create:functions:option|option()]]'' function to define a section of the questionnaire (see example). 
- 
-Verwenden Sie die Funktion ''[[:de:create:functions:option|option()]]'', um einen Abschnitt des Fragebogens zu definieren (s. Beispiel). 
  
 ''void **answersPrint**(string //section//)'' ''void **answersPrint**(string //section//)''
Line 16: Line 12:
 The ''answersPrint()'' function calls up ''answers'' repeatedly. Therefore, information for ''[[:en:create:functions:answers|answers()]]'' also applies fully for ''answersPrint()''. The ''answersPrint()'' function calls up ''answers'' repeatedly. Therefore, information for ''[[:en:create:functions:answers|answers()]]'' also applies fully for ''answersPrint()''.
  
-Die Funktion ''answersPrint()'' ruft mehrfach ''answers()'' aufHinweise für ''[[:de:create:functions:answers|answers()]]'' gelten daher uneingeschränkt auch für ''answersPrint()''. +If you enable the back button in the questionnaire and use filter questions, the following situation may occur: The respondents is shown a filtered question, then uses the back button, changes an earlier answers, and due to the filter, the other question is not displayed in the subsequent questionnaire, anymoreNonetheless, ''answersPrint()'' will display the question in the print view, because it has been asked.
  
 ===== Example 1 ===== ===== Example 1 =====
Line 23: Line 18:
 In the following example, the participant should get a print view of all questions in the questionnaire. In the following example, the participant should get a print view of all questions in the questionnaire.
  
-Im folgenden Beispiel soll der Teilnehmer eine Druckansicht aller Fragen im Fragebogen bekommen. 
  
 In **Compose Questionnaire**, insert a //PHP code// element on the first page with the following content: In **Compose Questionnaire**, insert a //PHP code// element on the first page with the following content:
  
-Fügen Sie dafür unter **Fragebogen zusammenstellen** zunächst auf der ersten Seite ganz oben ein Element //PHP-Code// mit folgendem Inhalt ein: 
  
 <code php> <code php>
Line 33: Line 26:
 </code> </code>
  
-This command informs SoSci Survey that a section begins with the ''all'' ID right from the start.+This command informs SoSci Survey that a section begins with the ''all'' ID right from the outset.
  
-Dieser Befehl teilt SoSci Survey mit, dass gleich zu Beginn ein Abschnitt mit der Kennung ''all'' beginnt. 
  
 Following this, insert a new page at the end of the questionnaire -- with a //PHP code// element and a text element. Following this, insert a new page at the end of the questionnaire -- with a //PHP code// element and a text element.
- 
-Anschließend fügen Sie am Ende des Fragebogens eine neue Seite ein -- und zwar mit einem //PHP-Code// Element und einem Textbaustein. 
  
 <code php> <code php>
Line 48: Line 38:
 The "printButton" text element has the following content. The "printButton" text element has the following content.
  
-Der Textbaustein "printButton" hat dabei folgenden Inhalt. 
  
 <code> <code>
Line 59: Line 48:
 ===== Example 2 ===== ===== Example 2 =====
  
-The questionnaire consists if two parts: after +The questionnaire consists of two parts: after a couple of questions regarding the master data (pages 1 and 2), there is a section concerning the respondent's company (pages 3 to 5), and then a section regarding their employment situation. The respondent should get both parts separately in print view,  page 6 should not appear in print view.
  
 +At the top of page 3 a //PHP code// element with the following content is inserted in order to do this:
  
-Der Fragebogen enthält zwei Teile: Nach einigen Fragen zu den Stammdaten (Seiten 1 und 2) kommt ein Teil zum Unternehmen des Befragten (Seiten 3 bis 5) und dann ein Teil zur Beschäftigungssituation (Seiten 7 und 8). Der Befragte soll beide Teile getrennt als Druckansicht bekommen, die Seite 6 soll in keiner Druckansicht auftauchen. 
- 
-Dafür wird auf Seite 3 ganz oben zunächst ein //PHP-Code// Element mit folgendem Inhalt eingefügt: 
  
 <code php> <code php>
Line 70: Line 57:
 </code> </code>
  
-Auf Seite 6 wird folgender PHP-Code eingefügt.+The following PHP code is inserted on page 6:
  
 <code php> <code php>
Line 76: Line 63:
 </code> </code>
  
-Und auf Seite 7 folgender PHP-Code.+and the following PHP code on page 7.
  
 <code php> <code php>
Line 82: Line 69:
 </code> </code>
  
-Am Ende des Fragebogens werden zwei Seiten eingefügtdie folgenden Inhalt haben.+At the end of the questionnairetwo pages with the following content will be inserted.
  
 <code php> <code php>
Line 92: Line 79:
 </code> </code>
  
-Optional kann unter dem PHP-Code jeweils noch der Textbaustein "buttonPrint" aus dem obigen Beispiel eingebunden werden.+ 
 +The ''buttonPrint'' text element from the above example can be optionally inserted under the PHP code for each one. 
en/create/functions/answersprint.txt · Last modified: 09.03.2022 10:28 by ruth.noppeney
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki