- Posts: 19
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Token-entry screen does not shown
- MVelikova
- Topic Author
- Offline
- New Member
Your LimeSurvey version: LimeSurvey Community Edition Version 5.2.4+211129 hosted on own server
Survey theme/template: vanilla
==================
Hello, i need some help. I have a closed with non-anonymous responses survey. When sending a link in an email, the token entry screen opens only at first time click. After that, if the same link is used, the application no longer opens the token screen and directly enters the previously completed questionnaire.
I have participants who need to complete the same survey for different participants ie. with different tokens. They received all invitations on same email address.
I've try with this links example:
Please click on the following link: https://............../index.php/478639 to answer the questionnaire
Please click on the following link: https://............./limesurvey/index.php/478639?newtest=Y&lang=bg to answer the questionnaire
Is it possible the YII_CSRF_TOKEN to be removed when the survey is completed?
As attachments I am sending my settings. Please guide me, what am I missing?
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10109
- Thank you received: 3595
- manual.limesurvey.org/Participant_settin...response_persistence
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- MVelikova
- Topic Author
- Offline
- New Member
- Posts: 19
- Thank you received: 0
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12940
- Thank you received: 3979
I am a bit confused.
The same link is used, but you seem to have activated the "cookie" option to prevent people from participate multiple times.When sending a link in an email, the token entry screen opens only at first time click. After that, if the same link is used
So, on one side you use cookies to prevent repeated participation, on the other side you want the same participant complete the survey several times
Isn't that a contradiction?who need to complete the same survey for different participants ie. with different token
You see, cookies are usually used in open surveys, where there is no information about the respondent.
In closed surveys there is the token to control the access.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- MVelikova
- Topic Author
- Offline
- New Member
- Posts: 19
- Thank you received: 0
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12940
- Thank you received: 3979
Now it would be the best you send the lss export of the survey, resp. a sample survey where this is reproducable.
This way we see ALL your settings.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11660
- Thank you received: 2742
However, you are also running a fair old version of LImesurvey (LS 5.2.4+211129), which is now over 2 years old and hasn't received any updates, bug fixes, etc since then. I highly recommend to update your installation to the latest LS5 before you go deeper into troubleshooting.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11660
- Thank you received: 2742
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- MVelikova
- Topic Author
- Offline
- New Member
- Posts: 19
- Thank you received: 0
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12940
- Thank you received: 3979
maybe bad news for you.
With these settings
and the end-url with added "newtest=Y"
I do not see any issue.
I can interrupt my survey. After entering the same token again I continue on the page where I left
After completing the survey and clicking the end-url link, I can enter the new token and the new survey starts.
Tested in 5.6.40.
Now something else.
Please, NEVER hardcode questionIDs, groupIDs, surveyIDs
Like here
$(document).on('ready pjax:scriptcomplete',function(){ document.getElementById("answer478639X871X19950SQ002_SQ1").style.display='none'; document.getElementById("answer478639X871X19950SQ002_SQ2").style.display='none'; document.getElementById("answer478639X871X19950SQ005_SQ1").style.display='none'; document.getElementById("answer478639X871X19950SQ005_SQ2").style.display='none'; // Identify this question var qID = '23'; var thisQuestion = $('#question'+qID);
Because these values are changed when you import the survey again which makes the script useless.
Use the placeholders {QID}, {GID}, {SID}, etc.
I am sure they were in the original script you used.
$(document).on('ready pjax:scriptcomplete',function(){ document.getElementById("answer{SGQ}SQ002_SQ1").style.display='none'; document.getElementById("answer{SGQ}SQ002_SQ2").style.display='none'; document.getElementById("answer{SGQ}SQ005_SQ1").style.display='none'; document.getElementById("answer{SGQ}SQ005_SQ2").style.display='none'; // Identify this question var qID = '{QID}'; var thisQuestion = $('#question'+qID);
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- MVelikova
- Topic Author
- Offline
- New Member
- Posts: 19
- Thank you received: 0
I will update Lime survey version then and try again
Please Log in to join the conversation.
- foaketom
- Offline
- New Member
- Posts: 1
- Thank you received: 0
Please Log in to join the conversation.