Skip to main content
Open

Blocking of dates on date picker (calendar)

Related products:Universal GUI
  • September 9, 2021
  • 4 replies
  • 226 views
Robert Jan de Nie
Arjan Sollie
Mark Jongeling
+30
  • Robert Jan de Nie
    Robert Jan de Nie
  • Arjan Sollie
    Arjan Sollie
  • Maurice Liebregt
  • Mark Jongeling
    Mark Jongeling
  • luukschouten
  • gariens
  • Jaap van Beusekom
    Jaap van Beusekom
  • eurban
    eurban
  • Erwin Ekkel
  • Freddy
    Freddy
  • Peter Kruis
  • PatrickW
  • Jimmy Scheer
    Jimmy Scheer
  • Arie V
    Arie V
  • Martin
  • Jan Koster
  • J. de Lange
    J. de Lange
  • mperrott
    mperrott
  • Marijn Metzlar
  • Jan Egbert Muurman
  • Selby Baidjnath
  • Suleyman
  • Marc Ferket
  • Elco van der Veen
  • tim
  • Alban_T
  • C. Lousberg
    C. Lousberg
  • Dries Fransen
  • Usha
  • Marius Korff
    Marius Korff
  • rbiram
    rbiram
  • BramG
  • Ruben_Kwant
  • Sanket Kolhe
  • pietervasbinder

Currently users are allowed to pick any date from the date picker and try to save a record. Whether the chosen date is allowed or not is being validated upon saving the record and a ‘warning’ below will let you know that it is not allowed to select this date. Users are forced to cancel the record and find out what would be allowed as input. 

It would be much better when we could block dates which are not allowed to be chosen. For example: Startdate of a new contract could not be in the past. How nice if we simply block these dates for the users in date picker. Just like booking a flight ticket (if there is no flight, you can't select these dates)

Did this topic help you find an answer to your question?

4 replies

Robert Jan de Nie
Thinkwise blogger
Forum|alt.badge.img+5

Awesome idea! Implementation wise, I'd like to be able to drive the ‘allowed dates’ via a query (table valued function maybe?) so you can customise the logic used to select these dates.


Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
Updated idea statusNewOpen

Arie V
Community Manager
Forum|alt.badge.img+12
  • Community Manager
  • 1034 replies
  • November 21, 2022

@Peter Verwijs to what extend will this Idea be covered with the solution for below Idea?

 


Peter Verwijs
Moderator
Forum|alt.badge.img+2

With domain input constraints the warning about an invalid date selection could be given earlier, but it will not prevent you from selecting an invalid date in the date picker. The implementation of this idea could in theory be built upon the implementation of domain input constraints but it will need a bit more work.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings