带有方法=“ POST”的表格未在任务模块MS团队中呈现

问题描述 投票:0回答:1

我正在构建一个机器人,它将在任务模块中显示自定义表单。我们正在使用.Net Core 3.1和Bot Framework 4.6。

问题:

我无法获得自定义表格以显示在任务模块中。这种形式的输入元素很少,并且具有method =“ POST”属性。当我删除“方法”属性时,任务模块会正确显示自定义表单。我只想将输入字段值发布到ViewModel。

当我在浏览器中使用method =“ post”运行同一页面时,我能够呈现该页面并将数据转发到其他页面

With Method =“ Post”:

。cshtml页面带有

enter image description here

任务模块:

enter image description here

Without method =“ POST”:

enter image description here

任务模块:

without method =“ post”页面可以正确显示,但是不能将数据发布到其他页面。

enter image description here

botframework microsoft-teams
1个回答
3
投票

一旦您以任务模块形式提交数据。您的机器人将收到task/submit调用请求,其中包含您已填写的数据。如果您希望这是我们在任务模块中所谓的链接,则可以与其他任务模块一起响应调用请求。请查看submitting the result of task module

© www.soinside.com 2019 - 2024. All rights reserved.