Prefilling survey answers using the survey URL (version 3)

More
2 years 2 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.
LimeSurvey Partners
More
2 years 2 months ago - 2 years 2 months ago #169125 by tpartner
Try this (no double equals signs and no quotes around Y):

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.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 2 years 2 months ago by tpartner.
The following user(s) said Thank You: achstil
The topic has been locked.
More
2 years 2 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.

Start now!

Just create your account and start using Limesurvey today.

Register now