Welcome to the LimeSurvey Community Forum

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

Prefilling survey answers using the survey URL (version 3)

  • achstil
  • achstil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #169118 by achstil
Hi

With version 2 i have succesfully used URL get, to prefill answers. But I cant get it to work with limesurvey 3.

I want to prefill a multiple choice question via URL

survey ID = 48315
Group ID = 2 (name = "TEST")
Question ID = 22 (name = "TESTMC"
Subquestion = 2007

I have tried:
mytest.limequery.com/index.php/survey/in...st/Y&TESTMC_2007=='Y '
mytest.limequery.com/48315?TESTMC_2007=='Y '
mytest.limequery.com/48315?48315X22X2XSQ-1=='Y '

And other variations. None work. What am I doing wrong?

Sincerely
Andreas
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago - 5 years 10 months ago #169125 by tpartner
Try this (no double equals signs and no quotes around Y):

Code:
https://mytest.limequery.com/index.php/survey/index/sid/48315/newtest/Y?48315X2X222007=Y

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 10 months ago by tpartner.
The following user(s) said Thank You: achstil
The topic has been locked.
  • achstil
  • achstil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #169130 by achstil
Thank you - it works:

I have referenced the answer on the wikipage that got me lost :-)
manual.limesurvey.org/URL_fields

Would it work with expression manager fields? I.e. with "TESTMC_2007"? Some where on the wiki I found that the old answercodes will be obsolete from version 4?

Sincerely
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose