Welcome to the LimeSurvey Community Forum

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

order of surveys in dropdown when assigning participants to surveys

  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 6 months ago #140918 by ttenbergen
When assigning participants to a survey, there is a screen where you pick the survey from a dropdown. The sort order of the dropdown _may_ be the age of the survey, not sure. Usually new surveys end up on the bottom of the dropdown, so a lot of scrolling is required to get to a survey you just made, especially if you have a lot of surveys (we have >650). It would be nice to be able to filter that dropdown, but that would be a big-ish change. Could it be sorted the opposite way instead? With newest first? Presumably most users are more likely to be working with newer than older surveys?
The topic has been locked.
More
7 years 6 months ago #140924 by fvanderstarre
Surveys are sorted on survey id (this may not really be of any help but just to let you know ....).
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #140931 by Joffm
Hi, ttenbergen,

just to add something to fvanderstarre's reply.

After creating a survey you can copy it.
Here you can enter a specific SurveyID.
This way you have an instrument to sort your surveys the way you like.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 6 months ago #141173 by ttenbergen
Hi Joffm, that would work for me alone. We have about 20 survey coordinators, and I have doubts we could come of with a fool proof human-centered process to generate the next lower unused number. Call me a pessimist. :unsure:
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #141188 by holch
If you have 20 survey coordinators you are running quite some operation on Limesurvey, I guess. Maybe you can sponsor a feature that allows to sort surveys better, maybe even put surveys in different categories/folders...

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 6 months ago #141192 by ttenbergen
Yes, we are running about 1000 surveys a year with quite a few participants. I finally got approval to at least move to comfortupdate so we are slightly supporting the program now. I don't think management would be keen on me spending more of their money, though, free is why we went with LimeSurvey.
Actually, sorting isn't a problem for us in the survey screen because we use a naming convention for them that takes care of that, but the dropdown when copying a survey is not sortable.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago - 7 years 6 months ago #141193 by holch
I understand the problem. But it is very short sighted from management. But you are fighting the same fight as many.

But with 1000 surveys a year you would spend quite a few bucks on any other tool. They should get that.

Maybe you can argue with the time spent additionally by each survey coordinator. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 7 years 6 months ago by holch.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #141213 by tpartner
ttenbergen, what LimeSurvey version?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 6 months ago #141234 by ttenbergen
Version 2.50.1+160823, hoping to upgrade to newest version as soon as a ComfortUpdate problem is fixed.
The topic has been locked.
  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 6 months ago #141235 by ttenbergen
Limesurvey is already the work-around for the system they are supposed to be using, which is purpose-made and has worse functionality. :-) We are actually using LS as an attendance tracking system, exporting the whole DB annually and shipping it through another program for reporting.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #141245 by tpartner
In LS version 2.5, you can sort the "Add participants to survey" list as follows...

1) Create your own admin template with a custom.js file as described in this post - www.limesurvey.org/forum/can-i-do-this-w...in-admin-page#137666

2) Add this to your new custom.js file:

Code:
$(document).ready(function(){
 
 
  // Sort "Add participants to survey" select element
  if($('#client-script-return-msg select#survey_id').length > 0) {
    var surveyList = $('#client-script-return-msg select#survey_id');
 
    var surveyOptions = $('option', surveyList);
    var selectedOption = $(surveyList).val();
 
    // Case insensitive sort
    /*
    surveyOptions.sort(function(a,b) {
      if (a.text.toLowerCase() > b.text.toLowerCase()) return 1;
      if (a.text.toLowerCase() < b.text.toLowerCase()) return -1;
      return 0
    });
    */
 
    // Case sensitive sort
    surveyOptions.sort(function(a,b) {
      if (a.text > b.text) return 1;
      if (a.text < b.text) return -1;
      return 0
    });
 
    $(surveyList).empty().append(surveyOptions);
    $(surveyList).val(selectedOption);
  }
 
});

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: ttenbergen
The topic has been locked.
  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 6 months ago #141249 by ttenbergen
I had no idea that the admin template could do anything beyond "looks", but I suppose this is kind of looks.

If I make this change, would it stick with version upgrades, especially ComfortUpdate? DenisChenu walked me through doing some changes in the main code a long time ago, but I abandoned the change eventually because I had to re-do with each upgrade, but if a change in template sticks that would be great!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose