【发布时间】:2021-01-23 10:43:03
【问题描述】:
我正在尝试在单击发送反馈时获取 TextBlock 文本/值(“单击了解更多以了解有关可操作消息的更多信息!)作为响应。 我尝试了 {{Heading.text}} 和 {{Heading.value}},其中 Heading 是字段的 id。
通过 {{feedbackText.value}} 从 Input.Text 获取价值可以正常工作。
示例:
{
"type": "AdaptiveCard",
"version": "1.0",
"hideOriginalBody": true,
"body": [
{
"type": "TextBlock",
"text": "Visit the Outlook Dev Portal",
"size": "Large"
},
{
"type": "TextBlock",
"text": "Click **Learn More** to learn more about Actionable Messages!",
"id": "Heading"
},
{
"type": "Input.Text",
"id": "feedbackText",
"placeholder": "Let us know what you think about Actionable Messages"
}
],
"actions": [
{
"type": "Action.Http",
"title": "Send Feedback",
"method": "POST",
"url": "https://webhook.site/.....",
"body": "{{feedbackText.value}}\n{{Heading.text}}\n{{Heading.value}}"
},
{
"type": "Action.OpenUrl",
"title": "Learn More",
"url": "https://docs.microsoft.com/outlook/actionable-messages"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"}
感谢您的帮助。
【问题讨论】:
标签: adaptive-cards