Prefilling survey answers using the survey URL (version 3)

More
6 months 2 weeks ago #169118 by achstil
achstil created the topic: Prefilling survey answers using the survey URL (version 3)
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

Please Log in or Create an account to join the conversation.

More
6 months 2 weeks ago - 6 months 2 weeks ago #169125 by tpartner
tpartner replied the topic: Prefilling survey answers using the survey URL (version 3)
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.
Last Edit: 6 months 2 weeks ago by tpartner.
The following user(s) said Thank You: achstil

Please Log in or Create an account to join the conversation.

More
6 months 2 weeks ago #169130 by achstil
achstil replied the topic: Prefilling survey answers using the survey URL (version 3)
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

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!