Welcome, Guest
Username: Password: Remember me

TOPIC: Make slider question mandatory

Make slider question mandatory 3 years 5 months ago #58585

  • tammo
  • tammo's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 34
  • Thank you received: 2
  • Karma: 1
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...
The administrator has disabled public write access.

Re: Make slider question mandatory 3 years 5 months ago #58618

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4134
  • Thank you received: 766
  • Karma: 347
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Make slider question mandatory 3 years 5 months ago #58627

  • tammo
  • tammo's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 34
  • Thank you received: 2
  • Karma: 1
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
The administrator has disabled public write access.

Re: Make slider question mandatory 3 years 5 months ago #58642

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4134
  • Thank you received: 766
  • Karma: 347
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.

Untitled-1_2011-03-23.png
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: tammo

Re: Make slider question mandatory 3 years 5 months ago #58675

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 248
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Make slider question mandatory 3 years 5 months ago #58681

  • tammo
  • tammo's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 34
  • Thank you received: 2
  • Karma: 1
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.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.117 seconds
Donation Image