Welcome to the LimeSurvey Community Forum

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

Tracking usage of previous button

  • Rudolf123456
  • Rudolf123456's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #231037 by Rudolf123456
Tracking usage of previous button was created by Rudolf123456
Please help us help you and fill where relevant:
Your LimeSurvey version: 2.64.0+170307
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hello dear forum,

i am trying to find a solution that allows me to track if and when/where participants use the previous button, that means going back to previous questions and or change their input.

Is someone aware of a solution to this problem? While I dont think this is that particular, I wasnt able to find an earlier post.

Thank you kindly,
rudolf

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #231040 by holch
Replied by holch on topic Tracking usage of previous button
Not a solution to your question, but you really should consider an update of your ancient installation of Limesurvey. Not only was the 2.5x branch that you are using one of the worst releases with a lot of bugs and issues (I never considered it fit for use in a "production" environment), it is also over 5 years old, hasn't received any bug or security fixes since then and is also not supported for a long time.

That being said, my guess is, that this is a university installation and you probably have little to no influence on this. However, even in this case it is always good to let the responsible person know that this installation is absolutely outdated and should not be in use anymore.

Especially in times of data protection / privacy laws like GDPR/DSVGO/LGPD, etc. it is not a good idea to collect data with such an old version of a software, that doesn't even cost money, so the upgrades are basically free (except for the time spent on updating).

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Rudolf123456
  • Rudolf123456's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #231067 by Rudolf123456
Replied by Rudolf123456 on topic Tracking usage of previous button
Thanks for feedback! You guessed right, i have little influence on this matter, but i took up your advise and let the responsible persons know about your view on this matter.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #231094 by holch
Replied by holch on topic Tracking usage of previous button

You guessed right, i have little influence on this matter,


In this case the next concern would probably be if you can use Javascript (which I guess not). I am no expert, but my bet would be, if there is a solution to your request, it would probably require Javascript. But as I said, no expert on this. Let's see what others that are more knowledgeable in this concern will say.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Rudolf123456
  • Rudolf123456's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #231114 by Rudolf123456
Replied by Rudolf123456 on topic Tracking usage of previous button
Yes i think it will need usage of javascript, but i am not able to provide the necessary code myself.

Looking forward to someone outthere that has the skill and the time to provide a solution. Thanks for the replies so far.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #231121 by tpartner
Replied by tpartner on topic Tracking usage of previous button
You could record the number of "Previous" clicks in local storage and then load a hidden short-text question in the last group. The problem is initializing the counter, probably in the first group. But what if the respondent returns to that group? How do you determine whether this is a new iteration of the survey or someone returning to the group?

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.

  • Rudolf123456
  • Rudolf123456's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago - 2 years 6 months ago #231122 by Rudolf123456
Replied by Rudolf123456 on topic Tracking usage of previous button
Thanks for the help!

I think i understand your mentioned problem. Each time one load a group the counter would be restartet right?

Possible Solution?!:
If i wanted to especially see if a participant would go back to one particular group --> could i than start the counter in the group afterwards and store the value it the group of interest (group before the group in which it startet). This way the counter would be always at one if the person goes back and would be stored at one. Is this possible or would the stored value be reset, after going to next group restarting the counter?

regards
Last edit: 2 years 6 months ago by Rudolf123456.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #231138 by tpartner
Replied by tpartner on topic Tracking usage of previous button
If you are only interested in particular groups, you could load a hidden (via CSS) question in those groups with incremental values every time the page is visited. Loading either via JavaScript or ExpressionScript. Unfortunately I'm not in a position to offer code samples this weekend.

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.

  • Rudolf123456
  • Rudolf123456's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #231141 by Rudolf123456
Replied by Rudolf123456 on topic Tracking usage of previous button
Thank you Tony,

that sounds like the right solution for me. I failed to produce the necessary code myself. If you, once you have the time at hand, could provide a sample code for me, it would be much appreciated!

regards

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #231162 by tpartner
Replied by tpartner on topic Tracking usage of previous button
This script placed in the source of a short-text question will hide that question and load the input with a number, incremented on every page visit.

Code:
<script type="text/javascript" data-author="Tony Partner">
  $(document).on('ready', function(){
 
    var thisQuestion = $('#question{QID}')
 
    // Hide this question
    thisQuestion.hide();
 
    // Load the input with incremented values in each visit
    var visits = 1;
    if($.trim($('input:text:eq(0)', thisQuestion).val()) != '') {
      visits = Number($.trim($('input:text:eq(0)', thisQuestion).val())) + 1;
    }
    $('input:text:eq(0)', thisQuestion).val(visits).trigger('keyup');
  });
</script>

Sample survey attached: 

File Attachment:

File Name: limesurvey...4395.lss
File Size:17 KB

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.

  • Rudolf123456
  • Rudolf123456's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #231166 by Rudolf123456
Replied by Rudolf123456 on topic Tracking usage of previous button
Hey Tony,

i tried it and it works as i hoped it would.

Thanks a lot and have a great day!

regards
rudolf

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose