Hi, I am asking people about habits they do at what time of day (eg. When do you wake up? When do you drink your first coffee?) and am trying to put in a timepicker.
I've been using the JS Query and I want it to be in a 24hr format, but I am only getting an AM/PM format.
Any suggestions on how to fix this?
Thanks!
This is what I have right now:
Qualtrics.SurveyEngine.addOnload(function()
{
jQuery("#"+this.questionId+" .InputText").flatpickr({enableTime: true, noCalendar: true, defaultTime: "H:i", time_24hr: true});
});
Qualtrics.SurveyEngine.addOnReady(function()
{
this.questionContainer.querySelector(".InputText").type = "time";
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/
});
Be the first to reply!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.