Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Token-entry screen does not shown

  • MVelikova
  • MVelikova's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 3 weeks ago - 3 months 3 weeks ago #254054 by MVelikova
Token-entry screen does not shown was created by MVelikova
Please help us help you and fill where relevant:
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?
Last edit: 3 months 3 weeks ago by MVelikova.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 3 weeks ago - 3 months 3 weeks ago #254062 by tpartner
Replied by tpartner on topic Token-entry screen does not shown
Disable "participant-based response persistence" and use newtest=Y.

- 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.
Last edit: 3 months 3 weeks ago by tpartner.
The following user(s) said Thank You: DenisChenu, MVelikova

Please Log in to join the conversation.

  • MVelikova
  • MVelikova's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 3 weeks ago #254078 by MVelikova
Replied by MVelikova on topic Token-entry screen does not shown
Thanks for the reply, but your suggestions don't change the situation. The token entry screen is displayed only if the browser closes after each survey. Even if it is selected "Automatically load end URL when survey complete" display error. The cookies are not deleted after pressing the send button.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 3 weeks ago #254080 by Joffm
Replied by Joffm on topic Token-entry screen does not shown
Hi,
I am a bit confused.

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 same link is used, but you seem to have activated the "cookie" option to prevent people from participate multiple times.

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

who need to complete the same survey for different participants ie. with different token

Isn't that a contradiction?

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
  • MVelikova's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 3 weeks ago #254082 by MVelikova
Replied by MVelikova on topic Token-entry screen does not shown
I will try to explain it again. For example, I have an accounting firm that serves 10 of my respondents. She will receive 10 emails with the name of the company and a link to enter the survey in her email. The accounting firm employee must enter a different token each time. For example, he first enters the survey for company with token 123. After completing it, he will click the link again because he needs to complete the survey for company with token 456, and if the browser is not closed first, the link leads to the completed survey of company 123. This continues to happen even when cookies are disabled.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 3 weeks ago #254084 by Joffm
Replied by Joffm on topic Token-entry screen does not shown
This is how I understood the workflow.

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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 3 weeks ago #254086 by holch
Replied by holch on topic Token-entry screen does not shown
Sounds like there is something wrong with your installation or setup. This is not normal behaviour.

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.

The following user(s) said Thank You: MVelikova

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 3 weeks ago #254087 by holch
Replied by holch on topic Token-entry screen does not shown
Also, read the error message. It says that the IP redirected you too many times, but there should be only 1 redirect, the one from the end URL. Do you have any other redirecting (e.g. server side via htaccess, etc) going on? That seems to be the problem.

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: MVelikova

Please Log in to join the conversation.

  • MVelikova
  • MVelikova's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 3 weeks ago #254090 by MVelikova
Replied by MVelikova on topic Token-entry screen does not shown

File Attachment:

File Name: limesurvey...8639.lss
File Size:238 KB
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 3 weeks ago - 3 months 3 weeks ago #254091 by Joffm
Replied by Joffm on topic Token-entry screen does not shown
Hi,
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
Code:
    $(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.
Code:
    $(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
Last edit: 3 months 3 weeks ago by Joffm.

Please Log in to join the conversation.

  • MVelikova
  • MVelikova's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 3 weeks ago #254111 by MVelikova
Replied by MVelikova on topic Token-entry screen does not shown
Thanks for advice. "Please, NEVER hardcode questionIDs, groupIDs, surveyIDs"

I will update Lime survey version then and try again

Please Log in to join the conversation.

More
2 months 4 weeks ago - 2 months 3 weeks ago #255044 by foaketom
Replied by foaketom on topic Token-entry screen does not shown
Thanks for advice.
projectfreetv.onl

waplus

 
Last edit: 2 months 3 weeks ago by foaketom.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose