Disable future dates in date picker

12 views
Skip to first unread message

alkolot

unread,
Aug 25, 2020, 12:46:45 PM8/25/20
to orb...@googlegroups.com
I'm wondering if anyone knows to disable future dates in the date picker,
i.e. 'dates > today' are not able to be selected.

Thanks!

Andrea

--
Sent from: http://discuss.orbeon.com/

Alessandro Vernet

unread,
Aug 26, 2020, 12:05:33 AM8/26/20
to orb...@googlegroups.com
Hi Andrea,

Currently you can exclude specific day from the date picker (e.g. holidays),
but what you're asking would require #4557 to be implemented (see link
below). I've added a +1 from you on that one. In the meantime you can do
this through a formula. This will still allow users to select a date in the
future, i.e. dates in the future won't be grayed out in the date picker, but
as soon as the date is selected, the field will be marked as invalid.

. < current-date()

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

Alessandro Vernet

unread,
Sep 1, 2020, 6:30:21 PM9/1/20
to orb...@googlegroups.com
Hi Andrea,

Just curious: did you get a chance to test the `. < current-date() `
expression? If so, did it work for you?
Reply all
Reply to author
Forward
0 new messages