【问题标题】:Microsoft Teams Adaptive Card Input.ChoiceSet Default Across PlatformsMicrosoft Teams 自适应卡片 Input.ChoiceSet 默认跨平台
【发布时间】:2019-10-22 18:16:16
【问题描述】:

如果没有“值”(即无默认值)呈现相同的 Microsoft Teams Adaptive Card Input.ChoiceSet,则会在 Microsoft Teams Android 客户端中显示默认值,但在 OS X、Web 或 iOS Teams 的下拉列表中没有默认选项客户...

如何在自适应卡中呈现相同的 input.choiceSet,而所有客户端的同一张卡都没有默认值?

Teams Android and OS X Render Same Card

{
  "type": "message",
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.adaptive",
      "content": {
        "type": "AdaptiveCard",
        "version": "1.0",
        "body": [
          {
            "type": "Container",
            "items": [
              {
                "type": "TextBlock",
                "text": "Command Center",
                "size": "large",
                "weight": "bolder"
              },
              {
                "type": "TextBlock",
                "text": "Please choose a scenario to submit."
              },
              {
                "type": "Input.ChoiceSet",
                "id": "scenario-id",
                "style": "compact",
                "isMultiSelect": false,
                "choices": [
                  {
                    "value": "71ae62b1-f04e-11e9-b862-577308a243ca",
                    "title": "Foo's Bar"
                  },
                  {
                    "value": "16db3124-f42d-11e9-bde7-819811d8b810",
                    "title": "Second"
                  }
                ]
              }
            ]
          }
        ],
        "actions": [
          {
            "type": "Action.Submit",
            "id": "popup",
            "title": "Continue...",
            "data": {
              "msteams": {
                "type": "task/fetch"
              }
            }
          }
        ]
      }
    }
  ]
}

【问题讨论】:

    标签: microsoft-teams


    【解决方案1】:

    @MarkSingleWire 感谢您向我们报告此事。自适应卡不应该为下拉菜单选择任何默认值。我们为此提出了一个错误,我们正在调查它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-18
      • 2021-02-06
      • 2019-02-24
      • 2021-12-17
      • 2020-01-13
      • 2019-10-29
      • 2021-09-18
      • 1970-01-01
      相关资源
      最近更新 更多