Welcome, Guest
Username: Password: Remember me

TOPIC: Set quotas for answer options

Set quotas for answer options 2 years 4 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 2 years 4 months ago #76642

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

Re: Set quotas for answer options 2 years 4 months ago #76648

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2550
  • Thank you received: 285
  • Karma: 102
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 1 year 8 months 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.
Moderators: ITEd
Time to create page: 0.151 seconds
Donation Image