flatpickr | Experience Community
Skip to main content
Solved

flatpickr

  • Sep 23, 2020 6:17 PM UTC
  • 3 replies
  • 279 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
  • Sep 23, 2020 7:53 PM UTC

Nvr mind...figured it out! 😊


dekennedy7
Level 2 ●●
Forum|alt.badge.img+10
  • Level 2 ●●
  • Aug 31, 2021 11:52 AM UTC

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
  • Answer
  • Sep 13, 2021 1:55 PM UTC

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