简体   繁体   English

使用 Input.Choiceset 的 AdaptiveCard 表单值作为提交按钮上的回信

[英]Use AdaptiveCard form value of Input.Choiceset as a messageback on Submit button

I have an adaptive card which displays a list of pipelines in a choice set, I want to use the value of the selected pipelines as a messageback to teams on selecting the submit button.我有一个自适应卡,它显示一个选项集中的管道列表,我想使用所选管道的值作为选择提交按钮时向团队发送的消息。 How can I access the value of the id of Input.Choiceset?如何访问 Input.Choiceset 的 id 值?

This is the snippet for Submit Action -这是提交操作的片段 -

    "actions": [
    {
        "type": "Action.Submit",
        "title": "Execute",
        "data": {
            "msteams": {
                "type": "messageBack",
                "text": "" (Choiceset value here)
            }
        }
    }
]

This is the Choiceset snippet -这是 Choiceset 片段 -

    {
        "type": "Input.ChoiceSet",
        "id": "pipelineSelect",
        "choices": "${list}",
        "placeholder": "pipelines"
    }

There was a recent answer to a similar question that might help.最近有一个类似问题的答案可能会有所帮助。 Check out How to echo user select optionset from ChoiceSet using messageBack or imBack?查看如何使用 messageBack 或 imBack 从 ChoiceSet 回显用户选择选项集? . . In addition, it might help to see more info on the CardAction class, as well as this blog post - see the "Card Action in Teams" section which even describes some more advanced messageBack options.此外,查看有关CardAction类的更多信息以及此博客文章可能会有所帮助 - 请参阅“团队中的卡片操作”部分,其中甚至描述了一些更高级的 messageBack 选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM