Welcome to the LimeSurvey Community Forum

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

Limiting no. of answers in single choice questions by no. of submitting persons

  • lukdab
  • lukdab's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 2 months ago #240663 by lukdab
Please help us help you and fill where relevant:
Hi, I need to prepare forms for conference where people will provide personal contat info and HAVE to submit information 
which workshop will choose. It means that during some time period between 9 a.m. and 11 a.m. thay have to go to 1 of 5 rooms
workshop 1 (room 1)
workshop 2 (room 2)
workshop 3 (room 3)
workshop 4 (room 4)
workshop 5 (room 5)
so it can be shown as single choice questions list (dropdown or radio). But i have to limit number of person in each room up to 25 person.
So it means that after 50 persons will sign up and for expample in room 2 will be already 25 persons who choose that workshop that form have to limit this option and for 51 person will see only as active choice
workshop 1 (room 1)
workshop 2 (room 2)
workshop 3 (room 3)
workshop 4 (room 4) - full (no more join)
workshop 5 (room 5)

i have no idea  how to setup that condition?
Any idea ? 



Your LimeSurvey version: LimeSurvey Cloud   Version 5.6.4

Own server or LimeSurvey hosting: your hosting

Survey theme/template:
==================
(Write here your question/remark)

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #240667 by holch
This "condition" does not exist. At least not out of the box.

You can use quota to limit the number of respondents per answer, but this will still allow to choose the room that is already full, but respondents will be then "screened out".

In LS 5 there is the option to check previous responses, so you can check how many respondents have already chosen a specific room and then could use relevance equations to hide this question. However, single choice questions don't have relevance equations, so you would have do some workaround via a hidden multiple choice question and then use an array filter.

Limesurvey is a survey tool and not made for reservations, at least not out of the box.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago - 2 years 2 months ago #240671 by Joffm
As @holch,
since version 5.x. there is a plugin "statFunctions" implemented. 
Read the manual about it
[url] www.limesurvey.org/manual/StatFunctions [/url]

Now the easiest implementation of your idea is to use a multiple question with Max. answers set to "1"
With these subquestions
 
(you see the equation to show the available places, up to you to adapt it to your needs)
and these subquestion relevance equations
 

you get this
 
You see, workshop 2 was already chosen 3 times and is not displayed anymore.
Otherwise you may show it, but as not selectable, by changing the "array filter type".

This - using a multiple question - avoids the workaround with an equation that presets a hidden multiple question which is used as array filter of the single question.
Anyway, this procedure is explained many times here in the forum.
This afternoon I will send an example - if the file upload works.

Joffm




 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 2 months ago by Joffm.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #240675 by Joffm
As promised, the sample survey.

Both options - multiple question and single question.
And two options to display. Up to you do refine this
 

File Attachment:

File Name: limesurvey...4968.lss
File Size:50 KB


Joffm

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

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose