How to disable past days in calendar widget

0
Hello everyone, Is there any possiblity to disable past days in calendar widget.?.. My requirement is that there will be a field called ‘End Date’ and the user should not select the past dates as end date, he should be selecting either current date or coming dates in calendar widget.. is this possible?
asked
2 answers
4

Hi Apurupa Konathala,

You can use the widget https://marketplace.mendix.com/link/component/111485

Thanks!

answered
0

Hello Apurupa,

There is no way to disable past dates in the Calendar widget. You can look for a widget in the Appstore that has that possibility.

However you can use Validation to stop user from proceeding until the field is valid. In the default widget propertie in Validation, select Date in Future or add custom Validation as :

$value != empty and $value >= [%CurrentDateTime%]

Or you can also call a microflow onclick of Save button and check for this validation in the decision box before committing.

answered