Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Set quotas for answer options

Set quotas for answer options 2 Jahre 8 Monate her #76616

  • aquadhere
  • aquadheres Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 6
  • Karma: 0
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Set quotas for answer options 2 Jahre 8 Monate her #76642

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4360
  • Dank erhalten: 827
  • Karma: 381
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Set quotas for answer options 2 Jahre 8 Monate her #76648

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2950
  • Dank erhalten: 377
  • Karma: 124
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?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Set quotas for answer options 2 Jahre 1 Woche her #88101

  • fairsay
  • fairsays Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 4
  • Karma: 0
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.147 Sekunden
Donation Image