Calendar customizing

Hi guys,
I’m trying to configure a calendar component for selection data from the past. It works OK however when you select a future date, it shows an error due to no data stored in DB. I tried scripting in calendar component, returns a msgBox saying “Wrong Date”, but it doesn’t work properly when using Property Change Event Handler.
Is it possible to somehow disable future dates for selection in the calendar?
Mant thanks in advance!

if event.propertyName == "latchedDate":
	if event.newValue>
		event.source.latchedDate =

Put this in the property change event.
Whenever the user selects a date (by pressing the OK button) that is greater than the current time, it sets it back to the current time.

Thanks a lot, that helped! :slight_smile: