flatpickr | XM Community
Solved

flatpickr

  • 23 September 2020
  • 3 replies
  • 139 views

Badge +5

Flatpickr is a much better calendar than the one built into the platform. As an non-programmer, I have figured out how to set it up and it works beautifully. My issue is that I'd like for users to be able to choose a range of dates. I see the code on flatpickr but I don't know where to put it in the existing Java code...or if I can even do that.
Any help would be greatly appreciated!

icon

Best answer by Julie 13 September 2021, 15:55

View original

3 replies

Badge +5

Nvr mind...figured it out! 😊

Userlevel 4
Badge +10

Julie can you post the solution so I can see how you were able to do this? Thanks!

Badge +5

dekennedy7
flatpickr('#startDate', {
 enableTime: true,
 allowInput: true,
 dateFormat: "m/d/Y h:iK",
 "plugins": [new rangePlugin({ input: "#endDate"})]
});

Leave a Reply