- Posts: 19
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
5 years 10 months ago #169118
by achstil
Prefilling survey answers using the survey URL (version 3) was created 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
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
5 years 10 months ago - 5 years 10 months 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):
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
5 years 10 months 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
The topic has been locked.