- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Prepopulate a text array using the URL
- Steve__777
- Topic Author
- Offline
- New Member
Less
More
8 years 9 months ago #121072
by Steve__777
Prepopulate a text array using the URL was created by Steve__777
I am trying to prepopulate a text array using the start URL.
http://localhost/index.php?r=survey/index/sid/588745&lang=en&newtest=Y&PersonalDetails_Personal_Title=Mr
Where PersonalDetails is the question code, Personal is the Y axis code and Title is the X axis code.
Nothing gets displayed in the array.
When I try this with a simple short text answer it does work.
http://localhost/index.php?r=survey/index/sid/588745&lang=en&newtest=Y&Phone=1234567890
Where the question code is Phone and the answer is populated with the right number.
What am I doing wrong?
http://localhost/index.php?r=survey/index/sid/588745&lang=en&newtest=Y&PersonalDetails_Personal_Title=Mr
Where PersonalDetails is the question code, Personal is the Y axis code and Title is the X axis code.
Nothing gets displayed in the array.
When I try this with a simple short text answer it does work.
http://localhost/index.php?r=survey/index/sid/588745&lang=en&newtest=Y&Phone=1234567890
Where the question code is Phone and the answer is populated with the right number.
What am I doing wrong?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
8 years 9 months ago #121074
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Prepopulate a text array using the URL
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3691
8 years 9 months ago - 8 years 9 months ago #121085
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 Prepopulate a text array using the URL
Yes, as jelo suggests, you can use the full SGQA in the URL.
So, for example, given:
So, for example, given:
- Survey ID - 111111
- Group ID - 22
- Question ID - 33
- Sub-question ID - SQ001
- Answer ID - A1
Code:
http://pathToLimeSurvey/index.php/survey/index/sid/111111/newtest/Y/lang/en?111111X22X33SQ001_A1=prepopulateValue
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 9 months ago by tpartner.
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13909
- Thank you received: 2546
8 years 9 months ago #121155
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Prepopulate a text array using the URL
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.