Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: connecting surveys

connecting surveys 5 Monate 3 Wochen her #105656

  • uba
  • ubas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 12
  • Karma: 0
Hi,

I've set up a questionnaire, and after respondents complete the questionnaire, I will redirect them to a second questionnaire which is not a limesurvey questionnaire (it is javascript-based).

I'd like to pass respondents' token values from the limesurvey questionnaire to the second, non-limesurvey questionnaire, so that I can later merge the datasets. Anyone have any experience doing this?

Thanks.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

connecting surveys 5 Monate 3 Wochen her #105658

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5324
  • Dank erhalten: 293
  • Karma: 248
You can use the end URL feature to load the second survey. The token can be added to that URL using
"...&usertoken={TOKEN}..."

Limesurvey should automatically replace the placeholder with the current user's token so you can read that value from URL at the second survey.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: uba

connecting surveys 5 Monate 3 Wochen her #105664

  • uba
  • ubas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 12
  • Karma: 0
Mazi schrieb:
You can use the end URL feature to load the second survey. The token can be added to that URL using
"...&usertoken={TOKEN}..."

Limesurvey should automatically replace the placeholder with the current user's token so you can read that value from URL at the second survey.

I did this (added "&usertoken={TOKEN}" to the end of the end url) and the token was added to the url of the second survey's entry page, as such "...index.php&usertoken=xiqv5et

However this resulted in a 404 "page not found" error rather than the index.php showing up. Did I do something wrong, or perhaps neglect to do something obvious?

Thanks.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

connecting surveys 5 Monate 3 Wochen her #105665

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4118
  • Dank erhalten: 760
  • Karma: 346
If the "second questionnaire which is not a limesurvey questionnaire", we can't help you with accessing it.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

connecting surveys 5 Monate 3 Wochen her #105666

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5324
  • Dank erhalten: 293
  • Karma: 248
Try replacing "...&usertoken..." with "...?usertoken..."

The first passed URL parameter always needs to use "?".

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: uba

connecting surveys 5 Monate 3 Wochen her #105693

  • uba
  • ubas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 12
  • Karma: 0
tpartner schrieb:
If the "second questionnaire which is not a limesurvey questionnaire", we can't help you with accessing it.

I understand. Actually it is not really a questionnaire, but a javascript-based Implicit Association Test. Originally I wanted to use the Limesurvey workaround to implement it, but apparently it isn't possible to use images in the Limesurvey version, so I had to find an alternative.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

connecting surveys 5 Monate 3 Wochen her #105694

  • uba
  • ubas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 12
  • Karma: 0
Mazi schrieb:
Try replacing "...&usertoken..." with "...?usertoken..."

The first passed URL parameter always needs to use "?".

This worked, thanks!! Now I just need to figure out how to pull the parameter from the URL to the second survey's dataset, which I realize isn't a Limesurvey issue.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

connecting surveys 5 Monate 3 Wochen her #105704

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4118
  • Dank erhalten: 760
  • Karma: 346
...apparently it isn't possible to use images in the Limesurvey version...
The IAT workaround will work with images if you make one small change.

Place images in your array sub-questions and then, in template.js, change both instances of this:
$('div.iatWord', thisQuestion).text($('.subquestion-list.unanswered:first .answertext', thisQuestion).text());

To this:
$('div.iatWord', thisQuestion).html($('.subquestion-list.unanswered:first .answertext', thisQuestion).html());

Here is a working template and survey.

Dateianhang:

Dateiname: Demo_IAT_Concept_With_Images.zip
Dateigröße: 76 KB

Dateianhang:

Dateiname: limesurvey_survey_462945.lss
Dateigröße: 18 KB


Capture2_2014-02-27.png


.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Letzte Änderung: 5 Monate 3 Wochen her von tpartner.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

connecting surveys 5 Monate 3 Wochen her #105729

  • uba
  • ubas Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 12
  • Karma: 0
Thanks very much, I'll try it out!
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.170 Sekunden
Donation Image