问题描述
我试图在单击“发送反馈”时获得TextBlock文本/值(“单击了解更多以了解有关可操作消息的更多信息!”)。 我尝试了 {{Heading.text}} 和 {{Heading.value}} ,标题是字段的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"}
感谢帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)