Welcome to the LimeSurvey Community Forum

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

Request response instead of mandatory

  • blienemann
  • blienemann's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 weeks ago #214488 by blienemann
Request response instead of mandatory was created by blienemann
Can you request an unanswered response be answered instead of making it mandatory or doing nothing at all?

For example, when a question is not answered and Next is hit the first time a popup says something like "You missed X number of responses. Would you like to respond before moving on?" The respondent can either then choose to respond or hit Next a second time and move on. 

Thanks! 
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 weeks ago #214490 by tpartner
Replied by tpartner on topic Request response instead of mandatory
Yes with JavaScript but the script details would be specific to the question types and numbers.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • blienemann
  • blienemann's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 weeks ago #214492 by blienemann
Replied by blienemann on topic Request response instead of mandatory
Ok. Thanks for your response!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 weeks ago #214493 by Joffm
Replied by Joffm on topic Request response instead of mandatory
Hi,
here you find a thread about this that started 9 years ago, but with a solution for arrays in version 3.x.
[url] forums.limesurvey.org/forum/can-i-do-thi...n-mandatory-question [/url]

Consider Denis' remark there: "Make it mandatory with a "DK/NA" option"

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
3 years 1 week ago #214512 by ployrich
Replied by ployrich on topic Request response instead of mandatory
Is this kind of Javascript solution the 'best'/only way to implement 'soft mandatory' in version 3.x ?
The topic has been locked.
More
3 years 1 week ago #214518 by jelo
Replied by jelo on topic Request response instead of mandatory

Is this kind of Javascript solution the 'best'/only way to implement 'soft mandatory' in version 3.x ?
 
A way to do it without Javascript would be to dublicates all questions and place a copy after each question.
If a question is not answered, the copy of the question would be displayed with e.g. "Do you really don't want to answer that question"?
If a question is answered, you would hide the copy of the question.

Pros: That can be done without additional Javascript.  You can see when questions are directly answered and when the request was needed.
Cons: You have a lot more questions. And addtional work when analyzing data.

 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 week ago #214529 by DenisChenu
Replied by DenisChenu on topic Request response instead of mandatory
For question text : gitlab.com/SondagesPro/QuestionSettingsType/checkboxForText

This add a specific text

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.
More
2 years 8 months ago #218922 by ployrich
Replied by ployrich on topic Request response instead of mandatory
I tried out tpartner's script/example survey referenced by Joffm. It doesn't work. And I have been trying to wrap my head around the base of the problem. I am working with v3.24.6

Given a non-mandatory question there is always a "No answer" - option which is checked by default (we do not want this) -> script doesn't get triggered, because there is basically no way to leave the question empty

Given a mandatory question and leaving some sqs empty, the script does trigger as expected, but confirming the dialog doesn't remove the mandatory errors and submits (which I would have expected from the return true which basically would "recall" the default event), instead I get the normal mandatory error messages.

How do I have to adapt the script? Or even more specific: What function do i need to call to submit/go to next?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 8 months ago #218926 by tpartner
Replied by tpartner on topic Request response instead of mandatory

Given a non-mandatory question there is always a "No answer" - option which is checked by default (we do not want this)

You can disable this in the survey settings.

- manual.limesurvey.org/Presentation#Show_.22No_Answer.22

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
2 years 8 months ago #218961 by ployrich
Replied by ployrich on topic Request response instead of mandatory
Thank you. Now it works.
 
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose