Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

Validation of input - Bot Framework composer

(0) ShareShare
ReportReport
Posted on by 325

Hi,

 

I am using Bot Framework to capture a date and time from an adaptive card.


This is the snippet from the adaptive card:

 

 {
            "type": "Input.Date",
            "id": "date",
            "label": "Input date"
        },
        {
            "type": "Input.Time",
            "id": "time",
            "label": "Input time"
        }
 
The adaptive card displays fine, but I am trying to only allow a date and time input that is in the past, the validation looks like this:
 
Monkeyman_0-1646657794894.png

 

But everytime I put in a date or time in the past, it is an invalid date and time and the Invalid Prompt text is sdisplayed to the user.

 

Any ideas?

Categories:
  • Monkeyman Profile Picture
    325 on at
    Re: Validation of input - Bot Framework composer

    I have figured out that I need to use this.value instead of user. but I still am only able to validate the date part and not the time.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Ekta Gupta Profile Picture

Ekta Gupta 4

#2
ricardodesouza Profile Picture

ricardodesouza 2

#2
L-1234567-0 Profile Picture

L-1234567-0 2

Overall leaderboard