I haven’t seen an update on this in a couple of months and now that Qualtrics is making a new push for the “New Survey Experience” (Simple Layout) I wanted to see if anyone had a solution for Qualtrics not saving the date when using Flatpickr?
I’m adding the following in my header:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.2.3/flatpickr.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.2.3/themes/dark.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.2.3/flatpickr.js"></script>
And the following in the JavaScript:
Qualtrics.SurveyEngine.addOnload(function()
{
jQuery("#question-"+this.questionId+" .text-input").flatpickr({
dateFormat: "m/d/Y"
});
});
However, while everything appears to work correctly when taking the survey, Qualtrics is not actually saving the value that is selected. There were some pretty convoluted work-arounds a few months back, but I was hoping someone has worked out a way to make Flatpickr work like it does in the other layouts.
Suggestions?