Skip to main content

Notifications

Copilot Studio - Calling Actions from Copilot S...
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.

Categories:
  • Uthiraa27 Profile Picture
    Uthiraa27 14 on at
    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
    ManishSolanki 15,075 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics