Welcome to the LimeSurvey Community Forum

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

Can I require a number of questions to be answered?

More
6 years 6 months ago #159258 by MaloF
It is possible to set mandatory questions.

I'm wondering if it is possible to require that a certain percentage, let's say 50%, of questions of the current group to be answered. (not matter which questions are answered)


Thanks
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #159261 by tpartner
No, not without JavaScript manipulation and that would depend on the question types.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: MaloF
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago - 6 years 6 months ago #159280 by DenisChenu
I think you can use a Short text question type. And for example , if you have 6 question Q1 to Q6, set
manual.limesurvey.org/Question_type_-_Sh...28em_validation_q.29

to
Code:
count(Q1.NAOK,Q2.NAOK,Q3.NAOK,Q4.NAOK,Q5.NAOK,Q6.NAOK)>3

Set the tip : you must answer to more than 3 question in this group, and create a class for example 'hidden-answer' to hide the answer part of this question.
Or maybe better : "show-only-tip" where you can hide whole but shown only the tip.

PS : related feature request : bugs.limesurvey.org/view.php?id=8885

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 6 years 6 months ago by DenisChenu.
The following user(s) said Thank You: MaloF
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #159291 by tpartner
@DenisChenu, yes, that's a valid workaround. :)

However, I find that my customers prefer to have the "Next" button disabled (with a warning element) until the required question(s) are completed.

This, of course, requires a little JS that could be circumvented, but they are aware of that risk and opt for it anyway. In the 7-8 years I have used this type of workaround, I have not had any reports of "cheating".

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: MaloF
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #159293 by DenisChenu
I like to do the 2 part :
- Expression Manager : diable system in PHP too : no way to submit invalid survey
- Javascript : better and speediest way to show it at user

:)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: MaloF
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #159300 by tpartner
Even better.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #159307 by DenisChenu
(in fact : i do the EM and search on LimeSurvey forum post from tpartner for the javascript workaround )

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose