Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

Time field

JRKBM
JRKBM Bordeaux FRCommunity Member, Qualtrics Brand Admin Qubie ✭

Hi everyone,

I'm looking to create a question with a preformatted time field (ex: what time do you arrive at work in the morning?).

What is the simplest method? I found some answers with Flatpickr, or using a field like <input type = time> but I can't really get them to work into the Qualtrics environment despite long searches on this forum.

Thanks for your help

Best Answer

  • TomG
    TomG Raleigh, NCCommunity Member, Qualtrics Brand Admin Wizard ✭✭✭✭✭
    Accepted Answer

    input type=time doesn't work with Safari, so you should probably avoid it.

    Flatpickr should work. Add the flatpickr stylesheet and script to your survey header. Then to your time question:

    Qualtrics.SurveyEngine.addOnload(function() {
        jQuery("#"+this.questionId+" .InputText").flatpickr({
            enableTime: true,
            noCalendar: true,
            dateFormat: "H:i"
        });
    });