Welcome to the LimeSurvey Community Forum

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

Display single page of completed survey

  • umrosa
  • umrosa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 4 days ago #269702 by umrosa
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.3.7+231127
Own server or LimeSurvey hosting: own server
Survey theme/template: custom theme based on vanilla
==================
Context: I'm trying to build a platform with user management that gives access to several LS surveys.

Here's what I'd like to do:
I have a survey with several pages containing questions - it's something like a quiz. After every page of questions, there is a feedback page with the results.
I have added a summary of all the feedbacks at the very end of the survey as a separate page. This page is not displayed when participants initially fill out the survey. In the platform, participants will be given the option to return to the survey to see the summary of their results. In this case, I want the survey to only show the final page.
My idea for a solution to this was to "continue" the survey with the saved response but hide the pages with the questions that were already answered. To achieve this, I defined a custom participant attribute to which I assign a numeric value (DISPLAYMODE=2) before starting the survey. This participant attribute is used as relevance in the question groups, so that only the final page is shown.
This method only works partly: I get the correct page to be displayed (only the final page is shown), but I cannot access the previous response because it is either overwritten or a new response is created.

I have tried different Participant settings, but nothing has worked yet:

a)
Enable participant-based response persistence = On
Allow to update the responses using the access code = On
=> saved response is overwritten, all questions are empty (regardless whether newtest=N or newtest=Y is used when starting the survey)

b)
Enable participant-based response persistence = On
Allow to update the responses using the access code = Off
=> a new response is created for the participant, all questions are empty (regardless whether newtest=N or newtest=Y is used when starting the survey)

c)
Enable participant-based response persistence = Off
Allow multiple responses with the same access code = Off
=> a new response is created for the participant, all questions are empty (regardless whether newtest=N or newtest=Y is used when starting the survey)

Is there any solution to this that I'm missing?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 4 days ago #269703 by Joffm
Replied by Joffm on topic Display single page of completed survey
Hi,
I do not understand the sense of {DISPLAYMODE} as you seem to use it.
In my opinion you set this attribute to 1, when importing your participants (you may leave it empty as well).
Now you display your questions (with condition "TOKEN:ATTRIBUTE_1==1") and after submitting you set this attribute to 2.
This you can achieve with the plugin "updateTokenByResponse".
[url] gitlab.com/SondagesPro/TokenManagement/updateTokenByResponse [/url]
When the participant opens again he will not see the questions again.

Better you provide a lss export.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • umrosa
  • umrosa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 1 day ago #269730 by umrosa
Replied by umrosa on topic Display single page of completed survey
Thank you for your reply Joffm.
I was not aware of this plugin, I may have a look at it. However, I don't think it will bring me any closer to resolving my main problem.

I'm suspecting that I failed to make clear that the final page with the results uses expressions to display the responses given by the participant and their achieved score. So far, I have not been able to figure out which settings I need to choose to achieve the following:
1. participant completes the survey, final page is not displayed [works]
2. participant opens survey-URL again, questions are skipped, final page is shown [works]
3. final page displays responses using expressions [not working]
that last point (3.) is not working because it seems like when skipping the questions in the second run of the survey, the old responses are overwritten, hence the questions are empty.
I have tested this by manually setting the related participant attribute to the required value (DISPLAYMODE=2) in the survey admin interface after I had completed the survey as a test participant. Here is the example survey:  

File Attachment:

File Name: test_quiz_...ults.lss
File Size:110 KB

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 1 day ago #269737 by Joffm
Replied by Joffm on topic Display single page of completed survey
So this "second round" is only to let the respondent see his results after he completed the survey?

In my opinion it's much better to use pdfReport to let him open (and print) his results after submitting.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • umrosa
  • umrosa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 20 hours ago #269748 by umrosa
Replied by umrosa on topic Display single page of completed survey
Thank you for taking the time to reply and offering an alternative solution.
For what I'm trying to do, the pdf solution is not desirable though.

Is it not possible to configure my survey in a way that allows what I'm trying to achieve?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 6 days ago #269769 by Joffm
Replied by Joffm on topic Display single page of completed survey

For what I'm trying to do

This is a bit vague.

I understand that the LimeSurvey survey (the quiz) seems to be embedded in another application.
And respondents shouldn't see their result summary before submitting the survey.

But this means that there is a link in your application to start the quiz.
So why not show a second link (button) to open a pdf with the results?

I'm trying to build a platform with user management

So the application knows the TOKEN. This way you should be able to either show the link to the quiz or the link to the result.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose