Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Adaptive Card - Input.Time - Chang interval

(0) ShareShare
ReportReport
Posted on by
Is there a way to change the  Input.Time interval from an adaptive card? Currently it's set up for Teams and the options are presented in 30-minute intervals. Is there a way to change this to 15-minute intervals? Also, is there a way to show only available options between a set number of hours? e.g. office hours 8:00 AM to 5:00 PM?
 
I have a card going to a user where they input a message and then input time and date they want to message to go out on Teams. 
  • ManishSolanki Profile Picture
    ManishSolanki 15,075 on at
    Adaptive Card - Input.Time - Chang interval
    Hi,
     
    I think showing interval of 15 minutes is not possible but you can set up the range of time hours to choose from i.e. 8 am to 5 pm,
     
    Here is an example.
     
    I have used below JSON in compose action that we will share with the user for choosing time. We will use min & max attributes to restrict users to select from the given time range:
    {
    "type": "AdaptiveCard",
    "body": [
    {
    "type": "Input.Time",
    "label": "What time do you want to meet?",
    "id": "meetingTime",
    "min": "08:00",
    "max": "17:00"

    }
    ],
    "actions": [
    {
    "type": "Action.Submit",
    "title": "OK"
    }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5"
    }
    Pass the output of compose action in the 'Message' parameter of "Post adaptive card & wait for a response" action:
     
     
    OUTPUT:
    I have tested on teams web but I would suggest you testing on desktop client as well.
     
     
     
    If this helps & solves your problem, please remember to like 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,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard