Check out the LimeSurvey source code on GitHub!

Set quotas for answer options

More
4 years 11 months ago #76616 by aquadhere
Hi,

I want to set a quota for particular answer options, and once that quota has been reached, hide that answer option from future respondents.

***************
We would like to get your opinions about one of the ice cream flavors below.

1. strawberry
2. chocolate
3. vanilla
***************

If 30 people have already selected strawberry, I would like to hide the 'strawberry' answer option from the 31st person.

Is this possible?

Thanks,
aquadhere

Please Log in to join the conversation.

More
4 years 11 months ago #76642 by tpartner
This can't be done without a little JavaScript and PHP.

You will need to put in an AJAX call to a remote PHP script that queries the database to find how previous answers there are and act accordingly.

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.

More
4 years 11 months ago #76648 by holch
As Tpartner said, this isn't possible without custom coding at the moment, but it looks pretty interesting.

Maybe you want to add it to the Ideatracker?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 3 months ago #88101 by fairsay
I'd be willing to sponsor/fund this feature being added if:
1) It was ready by Dec 31 (at least for my use and ideally for others)
2) It was on-track to become part of the 2.x release series

I'd need a quote first on how much it would cost. 1 day effort I could afford or maybe 2 depending on the rate.

How would I find someone interested in taking this on?

Duane

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form