Disable future dates in date picker

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Disable future dates in date picker

alkolot
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/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1598330108650-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Disable future dates in date picker

Alessandro  Vernet
Administrator
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
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1598414730571-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Disable future dates in date picker

Alessandro  Vernet
Administrator
Hi Andrea,

Just curious: did you get a chance to test the `. < current-date() `
expression? If so, did it work for you?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1598999419443-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet