SoSci Survey
Translations of this page:
 

caseSerial()

string caseSerial()

The function caseSerial() returns the value saved in the data record in the variable SERIAL. This is useful, for example, if you would like to show the respondent a personalized link to another questionnaire.

  • If the participant was invited via Mailing, caseSerial() returns the personal ID of the participant.
  • If an authorization code was used to begin the questionnaire (either transferred in the Link or entered manually), this will be returned when caseSerial() is used.

Note: An authorization code in the link to the questionnaire is saved regardless of whether the the questionnaire can only be accessed with an authorization code, or if it is public. To tranfer an ID that is not an authorization code, it is better to use the reference designed for this purpose.

Example

Note: If you are using mailings, normally the function mailSchedule() is more effective than the following example. If necessary, read the chapter Multi-Wave Surveys with Self-Selection.

html('
  <p>Please access this
  <a href="http://www.soscisurvey.de/project2/?s='.caseSerial().'">
  questionnaire</a> next week!</p>
');

The authorization code or the personal ID is also available with the placeholder %caseSerial% . The following PHP code has the same purpose a the code above.

html('
  <p>Please access this
  <a href="http://www.soscisurvey.de/project2/?s=%caseSerial%">
  questionnaire</a> next week!</p>
');
en/create/functions/caseserial.txt · Last modified: 16.12.2014 12:58 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki