C# 如何从复杂自适应卡读取值?
如果主体只有输入文本,我可以读取值。此案例包含columnset和column。当我从emulator中填充所有输入数据并单击submit按钮时,我没有得到任何值 平台:.Net C# 下面我分享了json卡的详细信息。你能帮我解决这个问题吗C# 如何从复杂自适应卡读取值?,c#,.net,botframework,adaptive-cards,C#,.net,Botframework,Adaptive Cards,如果主体只有输入文本,我可以读取值。此案例包含columnset和column。当我从emulator中填充所有输入数据并单击submit按钮时,我没有得到任何值 平台:.Net C# 下面我分享了json卡的详细信息。你能帮我解决这个问题吗 { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "0.5", "body": [
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "0.5",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"size": 2,
"items": [
{
"type": "TextBlock",
"text": "Tell us about yourself...",
"weight": "bolder",
"size": "large"
},
{
"type": "TextBlock",
"text": "We just need a few more details to get you booked for the trip of a lifetime!",
"isSubtle": true,
"wrap": true
},
{
"type": "TextBlock",
"text": "Don't worry, we'll never share or sell your information.",
"isSubtle": true,
"wrap": true,
"size": "small"
},
{
"type": "TextBlock",
"text": "Your name",
"wrap": true
},
{
"type": "Input.Text",
"id": "myName",
"placeholder": "Last, First"
},
{
"type": "TextBlock",
"text": "Your email",
"wrap": true
},
{
"type": "Input.Text",
"id": "myEmail",
"placeholder": "youremail@example.com",
"style": "email"
},
{
"type": "TextBlock",
"text": "Phone Number"
},
{
"type": "Input.Text",
"id": "myTel",
"placeholder": "xxx.xxx.xxxx",
"style": "tel"
}
]
},
{
"type": "Column",
"size": 1,
"items": [
{
"type": "Image",
"url": "https://upload.wikimedia.org/wikipedia/commons/b/b2/Diver_Silhouette%2C_Great_Barrier_Reef.jpg",
"size": "auto"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
]
}
很老的问题只是为了澄清如果有人看到这个
基本问题在相当长一段时间前就已经解决了,如果您使用AdaptiveCard,无论这些值是否在列集中,您都可以很好地获得所有值 我不完全确定,但上次我尝试使用自适应卡时,提交操作对列集不起作用,也许你可以删除所有列并测试它是否适合你。如果我删除列集,它将起作用,但我尚未测试。我想从列集合中获得结果,然后您可以尝试使用Action.Http而不是Action.Submit,并使用“key=value&key2=value2”这样的主体。这是我们几周前在HTML渲染器中修复的一个错误,但在您的WebChat控件/模拟器版本中似乎不存在。我将研究如何更新构建。您是说消息。值为空?