Is there a way to have users enter time (hh:mm) for their answers? | Experience Community
Skip to main content
Solved

Is there a way to have users enter time (hh:mm) for their answers?

  • May 28, 2018 12:48 PM UTC
  • 6 replies
  • 1855 views

Is there a way to have users enter time (hh:mm) for their answers? I don't want to use a text box as I don't think I can trust people to enter minutes or hours after their answer - lots of ways to mess up my data here! If the answer involved Java please let me know exactly what to do as I've never done Java before. Thanks!

Best answer by TomG

Sorry, I didn't read carefully enough. I thought you wanted them to pick a time instead of a length of time. You can write your own JavaScript to force them to enter something in the format hh:mm. Integrating something like cleave.js would make it easier.
View original

6 replies

  • Author
  • May 28, 2018 1:04 PM UTC
For example: how much time did you spend exercising last week? 5 hours? 45 minutes? Some people might answer in minutes and others in hours so I'm hoping the question itself can help validate the data rather than asking people to type in the units.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • May 28, 2018 7:18 PM UTC
You can integrate a time picker JavaScript like flatpickr.

  • Author
  • May 28, 2018 7:52 PM UTC
> @TomG said: > You can integrate a time picker JavaScript like flatpickr. I went through that page and it looks like that is for choosing dates not a length of time? If I missed something, please let me know!

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • May 28, 2018 7:59 PM UTC
Sorry, I didn't read carefully enough. I thought you wanted them to pick a time instead of a length of time. You can write your own JavaScript to force them to enter something in the format hh:mm. Integrating something like cleave.js would make it easier.

Forum|alt.badge.img

Hi TomG, I am looking exactly for what you are requesting and I found the following> https://community.qualtrics.com/XMcommunity/discussion/15375/totalling-hours-and-minutes-from-a-matrix-question


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Oct 14, 2022 7:13 PM UTC

https://community.qualtrics.com/XMcommunity/discussion/comment/50874#Comment_50874I wasn't requesting anything. I already know how to do it.