Skip to main content
Community site session details

Community site session details

Session Id : DThSh1ykcCgnVjYeCQJOhK
Copilot Studio - Calling Actions from Copilot S...
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 1 Feb 2024 05:51:58 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.

Categories:
  • Uthiraa27 Profile Picture
    14 on 05 Feb 2024 at 04:33:30
    Re: To gray out some dates from calender in adaptive card of PVA.

    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?

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 2 on 03 Feb 2024 at 07:21:23
    Re: To gray out some dates from calender in adaptive card of PVA.

    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.

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Featured topics