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:paneldata [05.09.2020 13:48] – [Return Value (Adresslist)] sophia.schaueren:create:functions:paneldata [05.09.2020 13:54] – [Return Value (Serial nNumbers)] sophia.schauer
Line 40: Line 40:
 **Note:** If the respondent has received an invitation and a reminder, MAILSENT will indicate the time when the original invitation was sent -- regardless of whether the respondent calls up the link in the invitation or in the reminder. **Note:** If the respondent has received an invitation and a reminder, MAILSENT will indicate the time when the original invitation was sent -- regardless of whether the respondent calls up the link in the invitation or in the reminder.
  
 +===== Return Value (Serial nNumbers) =====
 +
 +If the questionnaire uses the [[en:create:access|access|restricted access]] "serial number", ''panelData()'' will return the serial number used and a note that may be attached to it:
 +
 +<code php>
 +array(
 +  'serial' => (string) serial number
 +  'note' => (string) note to serial number
 +)
 +</code>
 +
 +**Important:** The questionnaire must use the access restriction "serial number", the specification of a serial number in [[:en:survey:url|link to questionnaire]] is not sufficient. The [[:en:create:placeholders|Placeholder]] ''%caseSerial%'' on the other hand will provide a serial number even if the questionnaire is public.
  
 ===== Example: Importing data ===== ===== Example: Importing data =====
Line 59: Line 71:
  
  
-===== Example: Experiment in two-wave survey =====+===== Example: Experiment in Two-Wave Survey =====
  
 In this example, participants register themselves for a study ([[:en:survey:opt-in-live]]). In the following, participants of the control and experimental group will receive different emails as experimental stimulus. Therefore, their address entries must be assigned to different subgroups. This is done by displaying one of two opt-in questions, depending on a randomly drawn code ([[:en:create:questions:random]]). In this example, participants register themselves for a study ([[:en:survey:opt-in-live]]). In the following, participants of the control and experimental group will receive different emails as experimental stimulus. Therefore, their address entries must be assigned to different subgroups. This is done by displaying one of two opt-in questions, depending on a randomly drawn code ([[:en:create:questions:random]]).
en/create/functions/paneldata.txt · Last modified: 07.09.2022 21:00 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