Welcome to the LimeSurvey Community Forum

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

Compound quotes

More
2 weeks 6 days ago #274355 by ritapas
Compound quotes was created by ritapas
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.6.13
Own server or LimeSurvey hosting: Own
Survey theme/template: N/A
==================
Hello,
I think I did not understand how quotas work.
I will simplify here my requirement: we will use LimeSurvey to register people to a party we are going to have. People are asked whether they will come AND whether they will take somebody with them. However, we have limited seats so we must set a quota to stop bookings when there are no seats left.
I enclose a sample survey with a limit of three, just to simplify testing.
In the example I put only two Yes/no questions: will you come? and Will you take somebody with you?
In the quotasetting.png file I show how I set the quota.

However, to do the testing I posted two responses, one from somebody who comes with a friend and one with somebody comining alone. See responses.png. The quota is still at 1. A third person could book his seat despite having none left.
Where am I mistaking?

Kind regards
Rita  

 

Please Log in to join the conversation.

More
2 weeks 6 days ago #274356 by ritapas
Replied by ritapas on topic Compound quotes
P.S.: I understand the quote I set is triggered only when the participant chooses to come AND to take a partner with him. Is there a way to count all people coming, instead? 

Please Log in to join the conversation.

More
2 weeks 6 days ago #274357 by Joffm
Replied by Joffm on topic Compound quotes
Hi, 
I'd use an equation to count the guests of one party, like {countif("Y",YouCome,WithPartner)}
then in a next equation the function statCount to count the total guests, like "if(statCountif(...)>3,0,1)"
Now you can set the quota on this last equation on outcome "0".

Due to a lack of time only a rough idea.

Joffm

BTW:
Wouldn't it be better to use simple "bootstrap-buttons" with
0: I will not come
1: I come alone
2: I come with partner

Here you only have to count this single question.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: ritapas

Please Log in to join the conversation.

More
2 weeks 5 days ago - 2 weeks 5 days ago #274358 by ritapas
Replied by ritapas on topic Compound quotes
Hello,
thank you for your kind answer. In my case the questionnaire will be more extended, so I think I'd keep the two questions apart, however the idea of a "triple state" button is rather good and I wouldn't have thought about that.
Could you help me with the expression? I'm a bit lost since LimeSurvey complains about an undefined function if I use statCountIf...
Last edit: 2 weeks 5 days ago by ritapas.

Please Log in to join the conversation.

More
2 weeks 5 days ago #274360 by Joffm
Replied by Joffm on topic Compound quotes
Hi,
"StatFunctions" is implemented by default.
But probably you have to activate it
 

Here my idea with your "two questions"
 

File Attachment:

File Name: limesurvey...5119.lss
File Size:34.21 KB

Later I will send another one, which should be easier.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: ritapas

Please Log in to join the conversation.

More
2 weeks 5 days ago #274362 by ritapas
Replied by ritapas on topic Compound quotes
Hello, thank you a lot. Unfortunately, StatFunctions aren't available in my Limesurvey but now I know this is due to a plugin not being activated. I'll see if the admins will allow for that!
 

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose