Welcome to the LimeSurvey Community Forum

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

Date-time question / Minute step interval

More
8 years 10 months ago #143347 by Ben_V
I would like to ask for time using a date-time question (format: HH:MM) with only 00/15/30/45 options for minutes

I put "15" in the "Minute step interval" setting but it's not working neither with 2.06 LTS nor 2.54 versions

Is it a bug or am I missing something?

Thank you

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
More
8 years 10 months ago #143430 by Deusdeorum
Tested this in 2.06+ Build 151018 and it does not work, just as you say. However, if you use dropdown layout it works, only selectable options are 0, 15, 30 or 45 min. If you need a quick fix and must use slider and not dropdown use something like this (note something, might need some minor adjustments):
Code:
<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $('.ui_tpicker_minute_slider').slider({min: 0, max: 45, step: 15});
  });
</script>
 
The following user(s) said Thank You: Ben_V
The topic has been locked.
More
8 years 10 months ago #143433 by Ben_V
Thank you a lot.. That will do the job :)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
More
8 years 10 months ago #143447 by jelo

Ben_V wrote: Is it a bug or am I missing something?

This is a buggy behavior. Date/time questions are always there to surprise us.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
8 years 10 months ago #143464 by ollehar
Yes, there's a bug report for this issue: bugs.limesurvey.org/view.php?id=11606

Work in progress.
The following user(s) said Thank You: Ben_V
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose