how to disable future date in calendar?

Hi,

I need a input allow use to choose the date in calander, how to disable the future date? so user unable to choose future date? 


thanks

Hi Jing,

Default calendar component in traditional web application only provides option to show min and max years not dates. But if you are developing using reactive web app then you can set min and max dates in date picker widget properties.

For traditional check this forge component, looks like its has exact feature you are looking for

https://www.outsystems.com/forge/component-overview/2050/calendar-date-picker

Hi Jing,

In the calendar widget their is an option to select max date, in which you can set the value as CurrDate(). So that future dates in the calendar would be disabled.


Hello jing tung wong,

you use current date in the property of max date as said in the above comment, and for more information please take a look in this documentation for better understanding:https://success.outsystems.com/Documentation/SILK_UI_Framework/03_Building_UI_Through_Pattern_Composition/Using_Silk_UI_Patterns/Calendar_Pattern