web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / To gray out some dates...
Copilot Studio
Unanswered

To gray out some dates from calender in adaptive card of PVA.

(0) ShareShare
ReportReport
Posted on by 14

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.

doubts.PNG
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    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.

     

  • Uthiraa27 Profile Picture
    14 on at

    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?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 607

#2
chiaraalina Profile Picture

chiaraalina 143 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 129

Last 30 days Overall leaderboard