Welcome to the LimeSurvey Community Forum

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

Quota limit reached but participation still possible

  • mvreiss
  • mvreiss's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 3 weeks ago - 5 months 3 weeks ago #265020 by mvreiss
Your LimeSurvey version: 5.6.26
Hosting and template: University provided (js and css deactivated)


Hi dear Limesurveyists,

Our survey is currently live and running. However, (at least) one quota limit seems not to work and I cannot understand why. You can see the quote in the picture below. The quota combines gender (= female) and age (70-79). The limit is set to 38 but the counter is at 51 and people can still participate (i.e., people are not excluded when answering the gender and age question and meeting the quota condition (e.g. female & age 70-79)).

Appreciate any help as we currently run into failing meeting our preset quotas.
Thanks a lot!
Attachments:
Last edit: 5 months 3 weeks ago by mvreiss. Reason: make it more concise

Please Log in to join the conversation.

  • mvreiss
  • mvreiss's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 3 weeks ago #265024 by mvreiss
After a very long error-searching process, I figured it out:
I calculated "ageclass" in a hidden question based on the open question "age" where people were entering their age. So "ageclass" was grouping the open answers on age and ageclass was the foundation for the quote. I found the instruction to do it like this somewhere in the forum.

However, limesurvey apparently does not /cannot fire a quota stop on hidden questions (I suppose this is because the next button on that question triggers the quota and for a hidden question, people never see the respective next button). The solution was to make the "ageclass" a normal question. This meant in turn, that I hid the normal age question and now only got a categorized age info but this is fine enough (didnt want to bother participants with two age questions). Hope this info is helpful for someone.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 3 weeks ago #265026 by Joffm
Hi,
I do not know what exactly you did, but you always can set a quota on en equation.
So, if you create an (hidden) equation the returns a result of 0 or 1, you can use this result as condition of the quota.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • mvreiss
  • mvreiss's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 3 weeks ago #265028 by mvreiss
I might well be wrong!

But it counted the quota correctly but did not stop participants when hitting the quota - as you can see in the screenshot.

I had three questions in 2 groups with the following content and order:
Group 1 and visible
  • "age" (open answer in numbers only)
Group 2 and invisible
  • "agecalc" type equation, only numbers = yes. Content of this question: {ageclass=if(age>79,8,if(age>69,7,if(age>59,6,if(age>49,5,if(age>39,4,if(age>29,3,if(age>19,2,if(age<20,1,99))))))))}
  • "ageclass" List with 8 answer options according to the logic in "agecalc". 

When group 2 is invisible, it counts the quota (in this case men and 16-19 years) correctly but does not stop me. When I put the questions in group 2 visible it does stop me. I can reproduce it. Please find the export of a minimal example attached (I hope I did it correct).

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 months 3 weeks ago #265031 by DenisChenu
> When group 2 is invisible, it counts the quota (in this case men and 16-19 years) correctly but does not stop me. When I put the questions in group 2 visible it does stop me.

Hope someone didn't break the system …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 3 weeks ago - 5 months 3 weeks ago #265032 by Joffm
Please see the survey tree!
 
gender and age: the "normal" questions.

ageclass (hidden): question of type equation {if(age>79,8,if(age>69,7,if(age>59,6,if(age>49,5,if(age>39,4,if(age>29,3,if(age>19,2,if(age<20,1,99))))))))}
I am not sure, when you expect the value "99". It is a mandatory question; so this is sufficient
{if(age>79,8,if(age>69,7,if(age>59,6,if(age>49,5,if(age>39,4,if(age>29,3,if(age>19,2,1)))))))}

Now you have a value for gender (0,1,2) and ageclass (1- acht) and you can calculate a combined value Age x Gender.
AgexSex (hidden): question of type equation: simply {8*gender+ageclass} with values from 1-24

And your quota?
Like this
 

 

File Attachment:

File Name: limesurvey...48_J.lss
File Size:59 KB


Joffm

Warum musste das jetzt wieder auf Englisch sein?
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 months 3 weeks ago by Joffm.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 months 3 weeks ago #265033 by DenisChenu
Not an issue : ALL question must be hidden.
Then you need genderQuota too …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 month 1 week ago #267257 by Mazi
@mvreiss: How exactly did you hide the question?

If you had set "Always hide this question" to YES, was the page "age" with the equation questions shown at all or was it fully skipped?

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com

Please Log in to join the conversation.

  • mvreiss
  • mvreiss's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #267261 by mvreiss
I am not fully sure I understand your question correct. In the solution I proposed in my second post in this thread the normal "age" question is completely hidden. I could also have removed it from the survey. They are now only asked the new categorical question in "ageclass". This was not ideal as I then only got age classes, no precises age anymore, but it solved the issue and I needed a very quick solution.

@Joffm Sorry, I never replied to your proposed solution. I ended up not having the to test it but I am sure it will be of help to others that have a similar issue. I very much appreciate the great help by you (and others) in this forum!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose