Skip to main content

Notifications

Calling Actions from Copilot Studio
Unanswered

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

Posted on by 8

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 8 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 6 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.

     

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,968

#3
Expiscornovus Profile Picture

Expiscornovus 1,673

Featured topics