Welcome to the LimeSurvey Community Forum

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

Can we apply the least filed Quota

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 weeks 23 hours ago #263176 by rajkumar_dms
Can we apply the least filed Quota was created by rajkumar_dms
Please help us help you and fill where relevant:
Your LimeSurvey version: [6.5.5]
Own server or LimeSurvey hosting: Cloud
Survey theme/template:
==================
I would like apply the least filed quota on radio bottom & check box question
If for a particular answer option reached their set limit then it will not show that particular answer option

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 22 hours ago #263178 by Joffm
Replied by Joffm on topic Can we apply the least filed Quota
This you can do with the function "statCount" or "statCountIf" both included in the built-in plugin "statFunctions"

Count the selected answer options so far and
a. in a multiple question just use subquestion condition.
b. in a single question it is a bit more work
  • create a multiple question with identical codes
  • set the selected subquestion with a questoion of type "equation". That is: select it if the limit ian't reached, don't select if the limit is reached.
  • use ths multiple question as array filter of the single question.
Joffm
 

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

Please Log in to join the conversation.

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 weeks 22 hours ago #263189 by rajkumar_dms
Replied by rajkumar_dms on topic Can we apply the least filed Quota
Thanks joffm

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose