I'm trying to add required validation to check whether the comment box is empty or not. I have checked on multiple places and blogs to make it work but some how validation is not working at all in Teams. When i'm using Designer of Adaptive card it is working as expected.
Below is the JSON code i'm using in my teams bot.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "Input.Text",
"label": "Comments",
"style": "text",
"isMultiline": true,
"id": "MultiLineVal",
"isRequired": true,
"errorMessage": "required"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
]
}
Designer Screen grab