adaptive-cards

Microsoft teams bot adaptive card carousel deleting a card

家住魔仙堡 提交于 2021-01-20 07:55:10
问题 I am using Microsoft teams bot with nodejs. I am rendering a carousel of adaptive cards with action on each card. My requirement is to delete an individual card out on which the action was clicked. Is it possible? Current code looks like below. i have given a try to deleteActive but that deletes entire carousel const { TurnContext, TeamsActivityHandler, CardFactory, AttachmentLayoutTypes, ActionTypes } = require('botbuilder'); class TeamsConversationBot extends TeamsActivityHandler {

How to rewrite a Adaptive Card Submit Action for MSTeams also working in Web Chat?

久未见 提交于 2021-01-07 02:41:53
问题 Hi i'm using adaptive Cards and want to generate a Submit Action which works in MS Teams as well as in Webchat. In Emulator this works fine. After i'm clicking the Button its like the user would type in "Test" in the chat. "actions": [ { "type": "Action.Submit", "title": "Test", "data": "Test" } This doesnt work in MS Teams. How to bring this to work? 回答1: My blog post explains that if you want to use a string submit action you will need to do it differently in Web Chat and Teams: https:/

How to rewrite a Adaptive Card Submit Action for MSTeams also working in Web Chat?

对着背影说爱祢 提交于 2021-01-07 02:40:00
问题 Hi i'm using adaptive Cards and want to generate a Submit Action which works in MS Teams as well as in Webchat. In Emulator this works fine. After i'm clicking the Button its like the user would type in "Test" in the chat. "actions": [ { "type": "Action.Submit", "title": "Test", "data": "Test" } This doesnt work in MS Teams. How to bring this to work? 回答1: My blog post explains that if you want to use a string submit action you will need to do it differently in Web Chat and Teams: https:/

Microsoft flow adaptive card to mention teams user in teams

久未见 提交于 2020-12-30 08:35:21
问题 I'm creating a Microsoft flow to mention a user within an Adaptive card posted by the Flow bot within teams. This is the action I'm trying to use This is a simplified version of my JSON to do this { "type": "AdaptiveCard", "body": [ { "type": "Container", "items": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "color": "Attention", "text": "Hey!" }, { "type": "ColumnSet", "columns": [ { "type": "Column", "items": [ { "type": "TextBlock", "text": "<at>steve@example.com</at>", }

Star rating input using Adaptive cards

白昼怎懂夜的黑 提交于 2020-12-13 12:04:52
问题 I am looking to develop an Adaptive card that will take a user input value ranging from 1 to 5 depending on the number of stars the user selects. I also would like to apply animation as the user hovers over the stars. For example if the user hovers through from left to right to the 4th star then I would like stars 1 to 4 selected. Similarly, if the user hovers back left to the 2nd star then I would like the 3rd and 4th star deselected. See the link below for an example. However, given