For date entries by user, we have developed an adaptive card with " Input.Date" command, where user can select the desired date from the calender pop up. Is there a command or method where we can gray out the dates after today? Eg: If today is 1/2/2024, then all dates from 2/2/2024 should be grayed out or user should not be able to select them. Only 1/2/2024 or the previous dates should be accessible to user.
The max function is working but I don't need it till a particular date rather I want the dates to be visible till "today"..Eg: If today is 5/2/2024, then all dates after 5/2/2024 should be grayed out or if today is 7/3/2024 then all dates from 8/3/2024 should be grayed out. Is there any command that can help me achieve this?
Hi @Uthiraa27
You could use max property in the JSON and pass dynamic value as current date to disable the future dates in adaptive card. Here is an example:
{
"type": "Input.Date",
"id": "Date",
"max": "2024-02-03"
}
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.