609
Views
3
Comments
how to disable future date in calendar?
Question

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

2020-03-01 17-52-33
Nikhil Gaur

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

2020-01-01 07-11-22
Pravi Gupta

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.


2022-02-25 19-42-59
Srinivas K Singadi

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.