Hi there,
I have a questionnaire where participants fill the start and end date of an activity they did during the day. They can enter up to 40 activities and I would like to make sure the start time of an entered activity is not before the end time of the previous activity. I considered using flatpickr but I don't get it to work.
This is what I tried:
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
var input = jQuery("#"+ this.questionId +" .InputText");
var startTime = jQuery('#' + "QID3" + ' .InputText').val();
input.attr("placeholder", "UU/MM");
input.flatpickr({
noCalendar: true,
enableTime: true,
time_24hr: true,
minTime: startTime,
minuteIncrement: 10});
});
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/
});
Any help is very much appreciated!