Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Prefilling question with answer-ID

  • Marhabba
  • Marhabba's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #97866 by Marhabba
Prefilling question with answer-ID was created by Marhabba
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 topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 8 months ago #97873 by DenisChenu
Replied by DenisChenu on topic Prefilling question with answer-ID
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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • Marhabba
  • Marhabba's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #97893 by Marhabba
Replied by Marhabba on topic Prefilling question with answer-ID
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 topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 8 months ago #97894 by DenisChenu
Replied by DenisChenu on topic Prefilling question with answer-ID
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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose