Blocking of dates on date picker (calendar)

Related products: Universal GUI

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)

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.


Updated idea statusNewOpen

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

 


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.