- Posts: 19
- Thank you received: 0
- Forum
- English support forums
- Can I do this with LimeSurvey?
- Prefilling survey answers using the survey URL (version 3)
Prefilling survey answers using the survey URL (version 3)
8 months 3 weeks 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
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.
Less
More
- Posts: 7813
- Karma: 618
- Thank you received: 2292
8 months 3 weeks ago - 8 months 3 weeks ago #169125
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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: 8 months 3 weeks ago by tpartner.
The following user(s) said Thank You: achstil
Please Log in or Create an account to join the conversation.
8 months 3 weeks ago #169130
by achstil
Replied by achstil on 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
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.