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

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

  • 28 May 2018
  • 6 replies
  • 692 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!
icon

Best answer by TomG 28 May 2018, 21:59

View original

6 replies

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.
Userlevel 7
Badge +27
You can integrate a time picker JavaScript like flatpickr.
> @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!
Userlevel 7
Badge +27
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.
Badge

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

Userlevel 7
Badge +27

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

Leave a Reply