Solved
How to Attach Flatpickr to a Text Input
Hi Community Friends!
I'm working on a "workflow" survey where I need a start date and end date. After some research I saw that TomG recommended flatpickr at https://www.qualtrics.com/community/discussion/792/date-range-picker-javascript.
I checked out flatpickr and the "Basic" date is exactly what I want for my two input fields (start/end dates), but I do not know how to attached the jQuery string - jQuery("#"+this.questionId+" .InputText").flatpickr(); - to each of my start/end inputs.
On my test survey (https://cmu.ca1.qualtrics.com/jfe/preview/SV_5u55r5rrqPQS06h?Q_SurveyVersionID=current&Q_CHL=preview) I got as far as adding the following to the top of the External CSS in the Look and Feel:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
Both Javascript & jQuery are out of my league and I would appreciate any help of how I add the jQuery string to my two text input fields given I am clueless but anxious to learn and expand my knowledge!
Best regards,
Rosemarie Lang
Best answer by TomG
That looks correct. What does your JavaScript look like?
Here is a working example: https://marketinview.ca1.qualtrics.com/jfe/preview/SV_bJztV5joU80qSQl/BL_8BSNtd8wzm74noV?Q_SurveyVersionID=current
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

The JavaScript is:
```
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .InputText").flatpickr();
});
```
I the removed the script info from the CSS External and added the Flatpickr CSS and JavaScript to the header as you said (image attached) and no calendar appears.
This seems to be very simple so I can't figure out what I am missing here.
Your example is exactly what I want!