The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA: Set quotas for answer options

Set quotas for answer options 1 Jahr 2 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 1 Jahr 2 Monate her #76642

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2870
  • Dank erhalten: 429
  • Karma: 246
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

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 1 Jahr 2 Monate her #76648

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 1975
  • Dank erhalten: 156
  • Karma: 80
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 6 Monate 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.
  • Seite:
  • 1
Moderatoren: DenisChenu, ITEd
Ladezeit der Seite: 0.283 Sekunden
Donation Image