Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Prefilling question with answer-ID

Prefilling question with answer-ID 3 years 2 weeks ago #97866

  • Marhabba
  • Marhabba's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi guys.

Due to the length of our survey we have had to split it into two parts. As it is right now we are using an end URL in the first part to automatically send the respondent to part two.

The problem is that we need some way to identify which answers of part 1 and 2 that come from the same respondent. If we were using tokens we could just prefill a hidden question in part two with the token from part one but since this is a public survey we have no tokens and we don't want to use public registration.

We were thinking that maybe we could prefill the answer-ID which is listed under "response and statistics." Is this possible?

Or is there another way to match two surveys without using tokens?
The administrator has disabled public write access.

Prefilling question with answer-ID 3 years 2 weeks ago #97873

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
Hello,

You can use {SAVEDID} in End Url and :
manual.limesurvey.org/Workarounds:_Surve...using_the_survey_URL (this part are to be moved elsewhere ...)

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Prefilling question with answer-ID 3 years 2 weeks ago #97893

  • Marhabba
  • Marhabba's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
This works perfectly! Thanks alot!

Is there anywhere to see which attributes are available to use within {}? Right now it feels like a guessing game trying to find the correct strings to use.
The administrator has disabled public write access.

Prefilling question with answer-ID 3 years 2 weeks ago #97894

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
Yes,

You're right.

Think this page : manual.limesurvey.org/Expression_Manager#Access_to_Variables must be updated with:
  • Specific variabe ( {QID}, {SAVEDID}, {TEMPLATEURL} etc ...)
  • Question code variable ( {QCODE.NAOK} etc ...)
Or maybe a new page in manual (FAQ , Glossary, other ?)

Denis
PS: manual is a wiki, you have an account on forum : same account for wiki.
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.423 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form