- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Panel integration and closed-access mode
- crebeck
- Topic Author
- Offline
- New Member
Less
More
3 years 8 months ago #204622
by crebeck
Panel integration and closed-access mode was created by crebeck
Hi everyone,
I am still trying to link LimeSurvey to our Sona Systems subject pool (see www.sona-systems.com/help/limesurvey.aspx ). The core idea is here to send participants from Sona to LimeSurvey with the survey code of the experiment in the url: e.g. limesurvey.de/index.php/284885?lang=de&id=%SURVEY_CODE% After finishing the survey on LimeSurvey they are then send back to Sona via the end URL, which passes the survey code (via {PASSTHRU:id}) back again. This should mark them as participated in the subject pool.
If I run LimeSurvey in open access mode, this works just fine. However, as soon as I try to use the close-access mode only receive the following error message when send back to Sona System: "Invalid survey_code". According to Sona this indicates that either the survey code is blank, or was not specified at all.
Something seems to be happening in the background here that apparently prevents the id/survey code from being passed through correctly in closed-access mode. My current guess would be that the parameter I am saving the id in is not accessible in the beginning when in closed-access mode. But I couldn't find anything in the documentation or the forum that helped me to understand what really is amiss here. I would greatly appreciate any kind of insight into what is going on here and whether this can be solved in some way.
P.S. The LimeSurvey manual advises to disable the welcome screen to prevent the id from not being loaded. For me when in open-access mode the panel integration works no matter whether the welcome screen is activated or not.
I am still trying to link LimeSurvey to our Sona Systems subject pool (see www.sona-systems.com/help/limesurvey.aspx ). The core idea is here to send participants from Sona to LimeSurvey with the survey code of the experiment in the url: e.g. limesurvey.de/index.php/284885?lang=de&id=%SURVEY_CODE% After finishing the survey on LimeSurvey they are then send back to Sona via the end URL, which passes the survey code (via {PASSTHRU:id}) back again. This should mark them as participated in the subject pool.
If I run LimeSurvey in open access mode, this works just fine. However, as soon as I try to use the close-access mode only receive the following error message when send back to Sona System: "Invalid survey_code". According to Sona this indicates that either the survey code is blank, or was not specified at all.
Something seems to be happening in the background here that apparently prevents the id/survey code from being passed through correctly in closed-access mode. My current guess would be that the parameter I am saving the id in is not accessible in the beginning when in closed-access mode. But I couldn't find anything in the documentation or the forum that helped me to understand what really is amiss here. I would greatly appreciate any kind of insight into what is going on here and whether this can be solved in some way.
P.S. The LimeSurvey manual advises to disable the welcome screen to prevent the id from not being loaded. For me when in open-access mode the panel integration works no matter whether the welcome screen is activated or not.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10110
- Thank you received: 3594
3 years 8 months ago - 3 years 8 months ago #204624
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 Panel integration and closed-access mode
LimeSurvey version?
Try adding a hidden short-text question with code "id". That will be loaded via the URL parameter. Then you can ignore the PASSTHRU "feature" and simply use {id} in the end URL.
Try adding a hidden short-text question with code "id". That will be loaded via the URL parameter. Then you can ignore the PASSTHRU "feature" and simply use {id} in the end URL.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 8 months ago by tpartner.
The following user(s) said Thank You: crebeck
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10110
- Thank you received: 3594
3 years 8 months ago #204625
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 Panel integration and closed-access mode
NOTE: To test, un-hide the short-text question and disable auto redirect to the end URL. This way you will see whether the question is loaded and see the URL in the end message.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: crebeck
The topic has been locked.
- crebeck
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
3 years 8 months ago #204627
by crebeck
Replied by crebeck on topic Panel integration and closed-access mode
Thank you! I will test this later and post here whether it worked out.
LimeSurvey version is 3.22 .
LimeSurvey version is 3.22 .
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11668
- Thank you received: 2742
3 years 8 months ago #204640
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Panel integration and closed-access mode
Please do not double post!
forums.limesurvey.org/forum/installation...d-closed-access-mode
forums.limesurvey.org/forum/installation...d-closed-access-mode
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: crebeck
The topic has been locked.
- crebeck
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
3 years 8 months ago #204645
by crebeck
Replied by crebeck on topic Panel integration and closed-access mode
Sorry about the double post. I first posted in the wrong category. I tired to delete that post, but I guess that didn't work out.
Thanks again for your answers! I added the hidden question linked to the URL parameter as both of your described. Again that worked perfectly for open access-mode: The id was depicted in the question (if it was displayed) and appeared in the end URL.
In closed-access mode however, the id is not put into the hidden question and the end URL at all.
Some observations from testing:
To me it still seems that in closed-access mode the id is simply lost after arriving to the initial page asking about the access key. Or is there something I am again missing here?
Thanks again for your answers! I added the hidden question linked to the URL parameter as both of your described. Again that worked perfectly for open access-mode: The id was depicted in the question (if it was displayed) and appeared in the end URL.
In closed-access mode however, the id is not put into the hidden question and the end URL at all.
Some observations from testing:
- The id is (of course) present in the URL of the very first screen when arriving from Sona Systems in either mode.
- Whether or not the welcome screen is displayed doesn't matter in open-access mode, even if the id is not shown in the URL any more when the corresponding hidden question is loaded.
To me it still seems that in closed-access mode the id is simply lost after arriving to the initial page asking about the access key. Or is there something I am again missing here?
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11668
- Thank you received: 2742
3 years 8 months ago - 3 years 8 months ago #204646
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Panel integration and closed-access mode
I think you are not giving us the whole picture.
When you say "closed mode", I assume you are talking about tokens (not anonymous mode)?
Are the tokens included in the URL? Because if respondents need to put the token manually, then I don't think you can pass anything via the URL.
However, when you already use tokens, why not include the ID into the token table already and use it from there???
[strike]Also, we do not know which LS version you are using.[/strike]
When you say "closed mode", I assume you are talking about tokens (not anonymous mode)?
Are the tokens included in the URL? Because if respondents need to put the token manually, then I don't think you can pass anything via the URL.
However, when you already use tokens, why not include the ID into the token table already and use it from there???
[strike]Also, we do not know which LS version you are using.[/strike]
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Last edit: 3 years 8 months ago by holch.
The following user(s) said Thank You: crebeck
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10110
- Thank you received: 3594
3 years 8 months ago #204648
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 Panel integration and closed-access mode
Can you get the panel provider to append the token to the survey URL? This is a very common practice as it skips the token-input screen.To me it still seems that in closed-access mode the id is simply lost after arriving to the initial page asking about the access key.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: crebeck
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
3 years 8 months ago #204651
by jelo
This issue around not capturing URL parameter when a token entry screen is used, is not new.
We have run into that issue years before.
I recommend to open a bugreport first.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Panel integration and closed-access mode
Already stated. LimeSurvey version 3.22.holch wrote: Also, we do not know which LS version you are using.
This issue around not capturing URL parameter when a token entry screen is used, is not new.
We have run into that issue years before.
I recommend to open a bugreport first.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: crebeck
The topic has been locked.