【发布时间】:2021-01-15 00:31:31
【问题描述】:
我正在尝试添加必需验证来检查评论框是否为空。我检查了多个地方和博客以使其正常工作,但有些验证在 Teams 中根本不起作用。当我使用自适应卡设计器时,它按预期工作。
以下是我在团队机器人中使用的 JSON 代码。
{
"$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"
}
]
}
设计师屏幕抓取
【问题讨论】:
标签: botframework microsoft-teams adaptive-cards