Welcome to the LimeSurvey Community Forum

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

Limit number of times a given answer can be chosen

  • sunsanvil
  • sunsanvil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 week ago #214596 by sunsanvil
Is there a way for LimeSurvey to eliminate a choice after a given number of people have chosen it?

We want to put out a questionaire asking people to chose a time slot (simple multiple choice question). But when, say, 30 people have chosen the "11:00-11:30" time slot, we want that choice to be no longer available.

Thanks in advance for any guidance you can provide.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 week ago #214599 by Joffm
Generally, yes.
There are examples here either using an ajax call or - easier - using a plugin.
Now the questions:
Which version of LimeSurvey do you use?
Do you have rights to install plugins? 

Later - after breakfast - I will show something.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 week ago #214612 by Joffm
Well, here you are:
I used the plugin "getStatInSurvey"
[url] gitlab.com/SondagesPro/ExportAndStats/getStatInSurvey [/url]

In the first group of the survey I capture the already given responses with this plugin
In the second group I use this often described method.
In a hidden multiple question the subquestions are checked or not by an equation.
Now I uise this multiple question as array filter for the single question.
This way I can hide answer options which are not available anymore

In this example there are 5 places available in each option:
 

option 1 was selected 4 times, is now selected the fifth time.
So the next participant will see this
 

That's fine.
But what happens if the one participant sees that option 1 was selected 4 times, and he hesitates what option to select.
Now the next participant will start the survey. He also sees that option 4 was selected only 4 times.
Meaning both may select option 1.
Values are only calculated from complete surveys.

Here the sample survey
 

File Attachment:

File Name: limesurvey...7844.lss
File Size:26 KB


Joffm




 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: palsboard
The topic has been locked.
  • sunsanvil
  • sunsanvil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 week ago #214624 by sunsanvil
Thank you so much for that.

We are on 3.21.5+200115. I wont be able to add plugins.

It may work for us to simply use the quota function to limit the number of people who can chose a given option, but when full it just tells person that it is full and please make another choice. If we cant make the choice disappear when its full, can we at least show a running total on each option? So that the responders would see "5/5" for example and know that that option is already full?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 week ago #214625 by Joffm

I wont be able to add plugins.

And I doubt that you have access to the database.
Where and how is LimeSurvey hosted?

So you won't be able to count the given responses. 
And of course you can't display something like "5/5", as you do not know it. 

And quota? Works, but is a bit annoying.
If the participant selects a date and then is screened out - maybe with the message "This date is not available - try again with a different one".

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 week ago #214675 by DenisChenu
LimeSurvey 4.4 have an included plugin for statitstics

manual.limesurvey.org/StatFunctions

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: dnvservices
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 days ago #214734 by Joffm
Yes, many times mentioned.
But in 4.4.16. and this test survey
 

I get this "undefined" error.
 

Can somebody explain what is to do additionally?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: dnvservices
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 days ago - 3 years 4 days ago #214756 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 3 years 4 days ago by DenisChenu. Reason: https://manual.limesurvey.org/index.php?title=StatFunctions&type=revision&diff=161797&oldid=159277
The following user(s) said Thank You: dnvservices
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 days ago #214772 by Joffm
After a new install of 4.x. and "Scan Files" / "Install"
and a second "Install" in Plugin Manager it is working now.

The "old" installation showed an error related to "config.xml"; no idea, what happened.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 days ago #214783 by DenisChenu
It's clear enough on manual ?

Manual still related to 3.X …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
3 years 3 days ago #214794 by jelo

After a new install of 4.x. and "Scan Files" / "Install"and a second "Install" in Plugin Manager it is working now.

So the root cause is still unknown. You did a complete new installation.
The "old" installation was a LS4 native or a LS3 upgrade to LS4?
The plugin was working till an update LS4 ? to LS4 4.4.16 was applied?

The only clue is the config.xml. That looks like we will see more upgrade issues around plugins.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
2 years 10 months ago - 2 years 10 months ago #217367 by palsboard
We are currently self-hosting the 3.11 version. Would it be possible to get a sample survey? What are the plugins that we need to install?
Our free event for kids will have 10 time blocs, each bloc has 10-15 concurrent workshops that are different from one bloc to another.
We are willing to set up the 4.4 version on a separate instance just for this registration step if the sample survey works out. THANK YOU.
Last edit: 2 years 10 months ago by palsboard. Reason: add info
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose