Skip to main content
Open

Blocking of dates on date picker (calendar)

Related products:Universal GUI
  • September 9, 2021
  • 5 replies
  • 255 views

Forum|alt.badge.img+2

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)

5 replies

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

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+10
Updated idea statusNewOpen

Arie V
Community Manager
Forum|alt.badge.img+12
  • Community Manager
  • 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.


Mark Jongeling
Administrator
Forum|alt.badge.img+23
The following idea has been merged into this idea:

All the votes have been transferred into this idea.