Welcome, Guest
Username: Password: Remember me

TOPIC: Prefilling question with answer-ID

Prefilling question with answer-ID 1 year 3 months 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 1 year 3 months ago #97873

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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
The administrator has disabled public write access.

Prefilling question with answer-ID 1 year 3 months 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 1 year 3 months ago #97894

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.139 seconds
Donation Image