Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Balance quotas - fill least full quota

  • SurveyDennis
  • SurveyDennis's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 week ago #152536 by SurveyDennis
Balance quotas - fill least full quota was created by SurveyDennis
I have 4 groups of questions, randomly I assign just one group for each participant.

I am using a hidden question with 4 options, so I can set a quota for each option.
I go for 200 completes, 50 completes for each option.

But I don't want people to terminate if the one option is full with the 50 comples and another option not.
Is there a way to check the quota status in the survey and to assign a different option when the option is already full?

Be SurveyFriendly too! Fight against boring surveys! www.SurveyFriendly.com
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 week ago #152551 by holch
Replied by holch on topic Balance quotas - fill least full quota
I don't see a way to do this without manually adapting the quota according to the "fill status". Unfortunately the quota in LS are either full or not and when full you get screened out.

And you can't access answers of others either in a questionnaire.

However, there is a plugin from Denis Chenu, that allows to check statistics at the current state. So maybe it is possible to use this to read out the current count for each quota. But I have never tried the plugin. You might be able to read the database via Ajax or something and then adapt the quota. But this will definitely require some custom coding.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • SurveyDennis
  • SurveyDennis's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 week ago #152560 by SurveyDennis
Replied by SurveyDennis on topic Balance quotas - fill least full quota
Thanks again for looking into this!

Yes good one, I think I will go indeed for an ajax call, external php page to check the mysql database directly.

Be SurveyFriendly too! Fight against boring surveys! www.SurveyFriendly.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose