flatpickr | XM Community
Skip to main content
Solved

flatpickr

  • September 23, 2020
  • 3 replies
  • 200 views

Julie
Forum|alt.badge.img+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!

Best answer by Julie

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

View original

3 replies

Julie
Forum|alt.badge.img+5
  • Author
  • 3 replies
  • September 23, 2020

Nvr mind...figured it out! 😊


dekennedy7
Level 2 ●●
Forum|alt.badge.img+10
  • Level 2 ●●
  • 27 replies
  • August 31, 2021

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


Julie
Forum|alt.badge.img+5
  • Author
  • 3 replies
  • Answer
  • September 13, 2021

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


Leave a Reply