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