Can I require a number of questions to be answered?

More
1 month 2 weeks ago #159258 by MaloF
MaloF created the topic: Can I require a number of questions to be answered?
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

Please Log in to join the conversation.

More
1 month 2 weeks ago #159261 by tpartner
tpartner replied the topic: Can I require a number of questions to be answered?
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

Please Log in to join the conversation.

More
1 month 2 weeks ago - 1 month 2 weeks ago #159280 by DenisChenu
DenisChenu replied the topic: Can I require a number of questions to be answered?
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
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 1 month 2 weeks ago by DenisChenu.
The following user(s) said Thank You: MaloF

Please Log in to join the conversation.

More
1 month 2 weeks ago #159291 by tpartner
tpartner replied the topic: Can I require a number of questions to be answered?
@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

Please Log in to join the conversation.

More
1 month 2 weeks ago #159293 by DenisChenu
DenisChenu replied the topic: Can I require a number of questions to be answered?
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: MaloF

Please Log in to join the conversation.

More
1 month 2 weeks ago #159300 by tpartner
tpartner replied the topic: Can I require a number of questions to be answered?
Even better.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
1 month 2 weeks ago #159307 by DenisChenu
DenisChenu replied the topic: Can I require a number of questions to be answered?
(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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!