Welcome to the LimeSurvey Community Forum

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

Choice eliminator

  • palsboard
  • palsboard's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 6 days ago #217460 by palsboard
Choice eliminator was created by palsboard
For our registration process to our conference (with concurrent sessions), we need to have a single-choice question but with a choice eliminator ability. We are running self-hosted limesurvey 3.11 and can upgrade to 3.21 (whatever the LTS version is). That is, each of the concurrent workshop has a different maximum number of registrants. Once that workshop is filled, other registrants should not see that choice anymore. Any idea? Many thanks in advance.
The topic has been locked.
More
4 years 6 days ago #217476 by jelo
Replied by jelo on topic Choice eliminator

Once that workshop is filled, other registrants should not see that choice anymore. Any idea? Many thanks in advance.

LimeSurvey has no access to the respsonses. Since LimeSurvey 4.10 there is an function to count responses.
www.limesurvey.org/manual/StatFunctions

I still cannot recommend to use LimeSurvey as a booking system. It's technical a complete different thing. What about cancellation? What if a survey is filled out twice?
Depending on your needs it might work when supervised closely.

 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu, palsboard
The topic has been locked.
  • palsboard
  • palsboard's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #217658 by palsboard
Replied by palsboard on topic Choice eliminator
Thanks for your answer.
We don't really need to deal with cancellation through limesurvey because the students are expected to be at the virtual camp. Each student has an ID so duplication will be handled by our staff working with each student directly.

If you can give us a sample question or survey for limesurvey 4.1, that would be a fantastic help. We can set up the instance just to handle the registration.

Thanks again.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 11 months ago - 3 years 11 months ago #217666 by DenisChenu
Replied by DenisChenu on topic Choice eliminator
Included in code for test : github.com/LimeSurvey/LimeSurvey/blob/ma...untFunctionsTest.lsa

And more : did you read the manual ?

You can find an usage of this 2 functions in survey_archive_statCountFunctionsTest inside test directory.


 

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.
Last edit: 3 years 11 months ago by DenisChenu.
The following user(s) said Thank You: palsboard
The topic has been locked.
  • palsboard
  • palsboard's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago - 3 years 11 months ago #217814 by palsboard
Replied by palsboard on topic Choice eliminator
I have read the manual's entry for statfunctions. We were able to set up the array but the solution is still buggy in other parts.

What we need is a single choice question type. However, in order to use this Relevance Statfunctions, it seems that we could only use the Array question. Is this conclusion correct?
I have attached the survey group (can't seem to export the entire survey somehow). Thank you.
 
Last edit: 3 years 11 months ago by palsboard.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 11 months ago #217828 by DenisChenu
Replied by DenisChenu on topic Choice eliminator
No,

You can use any question type
For a multiple choice : statCountIf(Q01_SQ0X.sgqa, "Y"[, submitted = true])

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.
The following user(s) said Thank You: palsboard
The topic has been locked.
  • palsboard
  • palsboard's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #218032 by palsboard
Replied by palsboard on topic Choice eliminator
Thanks.
We cannot figure out how to do it with single choice question. Can you please give a sample lsq? Thanks again.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 11 months ago #218042 by DenisChenu
Replied by DenisChenu on topic Choice eliminator
Please : create a LSS with only one question ... i pyurt the formula.

Or maybe you can show what you test ?

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.
The following user(s) said Thank You: palsboard
The topic has been locked.
  • palsboard
  • palsboard's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #218129 by palsboard
Replied by palsboard on topic Choice eliminator
I am such a newbie at this, i feel that we are missing something simple.

We got choice eliminator working in an array question instead of a single choice (even though we are aiming to have just one answer). Right now we are only able to do it as an array question and that creates other issues (which we address by limiting the answer to the entire array to a single answer).

We are also hoping to be able to get Questions 5-8 into one table like in Question 4 but don't know if that would be feasible. This would turn it back into an array question again.

Background: This is a registration form. The registration form will have 10 time blocks. Each time block will have 35-40 different topic choices. The student will select only one choice for each time block. Each topic itself will have a limit on number of seats available.

I attach the file here.
Thank you again for your help.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 11 months ago - 3 years 11 months ago #218130 by DenisChenu
Replied by DenisChenu on topic Choice eliminator
Yes : there are no "relevance" for answer in LimeSurvey.

But : you can hide some answer , or show like "[COMPLETE]"
And then hide it in JS

You made something really strange ... else why you put A01_SQ001 ?
It's question Q5 : then it's Q5_SQ001

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.
Last edit: 3 years 11 months ago by DenisChenu.
The topic has been locked.
  • palsboard
  • palsboard's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #218132 by palsboard
Replied by palsboard on topic Choice eliminator
Thanks for your response.
Sorry about leaving that irrelevant and incorrect A01_SQ001. We should have removed it properly.

Right now, we are able to hide the topics that got filled up.

So is that true that we cannot reduce the questions 5-8 into 1 array question? TIA.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 11 months ago #218133 by DenisChenu
Replied by DenisChenu on topic Choice eliminator
I think i don't understand what you want exactly, please : create mockup …

Maybe something like this
Code:
statCountIf(Q4_SQ001_NAME.sgqa,Q4_SQ001_NAME.NAOK) < 3
and
statCountIf(Q4_SQ002_NAME.sgqa,Q4_SQ002_NAME.NAOK) < 3
and
statCountIf(Q4_SQ003_NAME.sgqa,Q4_SQ003_NAME.NAOK) < 3
and
statCountIf(Q4_SQ004_NAME.sgqa,Q4_SQ004_NAME.NAOK) < 3

 

File Attachment:

File Name: limesurvey...7634.lss
File Size:110 KB

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.
The following user(s) said Thank You: palsboard
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose