Hi,
I have a Year of Birth question. I do not want a drop-down list, instead I want one of those tiny calendars to popup when the respondent clicks on the text-box. I used flatpickr (code copied below), obviously something is wrong because the calendar doesn't show. I am no expert in coding and scripting, I hope someone in the community can help. Thanks a lot, I really appreciate the help!
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
var input = jQuery("#"+this.questionId+" .InputText");
input.attr("placeholder", "YYYY");
input.flatpickr({
dateFormat: "Y",
minDate: "1900",
maxDate: "${date://CurrentDate/Y}"
});
});
Question
Year only Calendar
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.