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

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Set quotas for answer options

Set quotas for answer options 1 year 2 months ago #76616

  • aquadhere
  • aquadhere's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 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
The administrator has disabled public write access.

Re: Set quotas for answer options 1 year 2 months ago #76642

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2853
  • Thank you received: 423
  • Karma: 243
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.
The administrator has disabled public write access.

Re: Set quotas for answer options 1 year 2 months ago #76648

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 1972
  • Thank you received: 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!
The administrator has disabled public write access.

Re: Set quotas for answer options 6 months 6 days ago #88101

  • fairsay
  • fairsay's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 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
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.196 seconds
Donation Image