Check out the LimeSurvey source code on GitHub!

Make slider question mandatory

More
5 years 9 months ago #58585 by tammo
I am trying to make a slider question mandatory but this seems impossible:
  • indicating that is mandatory does not work
  • making the initial value 0, while indicating that the minimum value is 1 and maximum is 10 does not work

I also tried to use the regex /^[1-9]{1}$|^10$/ for validation, but then the feedback when "forgetting" will never point the user back to the forgotten question.

Is this a bug or am I overlooking some possibility.

Thanks in advance for helping...


Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands

Please Log in to join the conversation.

More
5 years 9 months ago #58618 by tpartner
What LimeSurvey version are you using?

I have just tested a "mandatory" slider question with version 1.90 and I am required to move the slider before advancing in the survey.

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
5 years 9 months ago #58627 by tammo
Hi, thanks for your response. I am using version 1.90+ Build 9642

Example survey:
survey.toolsforresearch.nl/index.php?sid...52&newtest=Y&lang=en


Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands

Please Log in to join the conversation.

More
5 years 9 months ago #58642 by tpartner
I think the problem is that you have given the sliders an initial value of 0 which effectively means that they have been answered.

Try removing the initila value and setting the minimum value to 1.

This means that they will have no value on page load but must be moved to proceed.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: tammo

Please Log in to join the conversation.

More
5 years 9 months ago #58675 by Mazi

tpartner wrote: I think the problem is that you have given the sliders an initial value of 0 which effectively means that they have been answered.

Yes, that's it!


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 9 months ago #58681 by tammo
Great, thank you very much. I thought that by giving 0 as the initial value, while the right value goes from 1 to 10, this problem would be tackled.

By leaving the initial value out, the "mandatory thing" works now.


Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form