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:casetoken [24.01.2015 12:18] – [Example] alexander.ritteren:create:functions:casetoken [21.04.2024 10:30] admin
Line 3: Line 3:
 ''string **caseToken**()'' ''string **caseToken**()''
  
-Each questionnaire has an internal ID (token), which enables it to be identified during the course of the survey. The ID also appears after "Next" has been clicked on for the first time in the browser's address bar (e.g.  %%https://www.soscisurvey.de/demo/?t=%%__12345abcde__).+Each questionnaire has an internal ID (token), which enables it to be identified during the course of the survey. The ID also appears after "Next" has been clicked on for the first time in the browser's address bar (e.g.  %%https://www.soscisurvey.de/demo/?i=%%__12345abcde__).
  
 Using this ID, it is possible to leave the current questionnaire to do something else (e.g. surf another website, and then subsequently comes back and resume the questionnaire. The prerequisite is that the external website saves the internal ID, and submits ''t'' as the GET variable in the URL back to the questionnaire ([[:en:survey:url|URL to the questionnaire]]). Using this ID, it is possible to leave the current questionnaire to do something else (e.g. surf another website, and then subsequently comes back and resume the questionnaire. The prerequisite is that the external website saves the internal ID, and submits ''t'' as the GET variable in the URL back to the questionnaire ([[:en:survey:url|URL to the questionnaire]]).
Line 23: Line 23:
 </code> </code>
  
-Instead of using the functions, the respective placeholder could also just be used in the command ''redirect()''.+Instead of using functions, the corresponding placeholder could also just be used in the command ''redirect()''.
  
 <code php> <code php>
 redirect('https://www.s2survey.net/?tk=%caseToken%&num=%caseNumber%', true); redirect('https://www.s2survey.net/?tk=%caseToken%&num=%caseNumber%', true);
 </code> </code>
en/create/functions/casetoken.txt · Last modified: 21.04.2024 10:31 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