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

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


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
  • 2 replies
  • May 28, 2018
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 ●●●●●●●●
  • 5932 replies
  • May 28, 2018
You can integrate a time picker JavaScript like flatpickr.

  • Author
  • 2 replies
  • May 28, 2018
> @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 ●●●●●●●●
  • 5932 replies
  • Answer
  • May 28, 2018
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 ●●●●●●●●
  • 5932 replies
  • October 14, 2022

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


Leave a Reply