Is there anyway to set up an hour picker in an Editor form?

Is there anyway to set up an hour picker in an Editor form?

SnacklesSnackles Posts: 33Questions: 8Answers: 0

Hi all,

I'm wondering if there's a way to set up an hour picker as shown in the attached image? I was able to set up an hour and minute picker, but haven't been able to figure out how to disable the ability to pick minutes and only display whole hours. I've been searching for the past 45 minutes or so and can't seem to find anything definitive.

Thanks!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    interestingly we had a similar question on this topic just a few days ago - picking only parts of the time. At the moment, no I'm afraid the Javascript is setup so that if a time component is included, then both hours and minutes will be shown. However, a spot of CSS will do it:

    div.editor-datetime-minutes {
      display: none;
    }
    

    Allan

  • SnacklesSnackles Posts: 33Questions: 8Answers: 0

    Oh duh, it's as simple as that. I had tried using jQuery to dynamically remove it when the editor form popped up, but it always appeared for a second before being removed. Thanks, Allan!

This discussion has been closed.