You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using adaptive card to render a response for my bot using Bot Framework(C#).
I and concatenating the response and a 'Know More' link, on clicking which, link must open in a new tab. Both of them being of type Text Block. The adaptive card JSON is as follows:
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "${title1}",
"wrap": true,
"target":"_blank"
},
{
"type": "TextBlock",
"text": "${title2}",
"wrap": true,
"color": "accent"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3"
I tried adding the url parameter to the second TextBlock, and target=_blank too, but they do still open the link in the current tab itself.
Any suggestions on what is going wrong will be appreciated.
Not: Only want to second text block to be a link and open in a new tab, and it has to be a TextBlock and not a button.
Thanks in Advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am using adaptive card to render a response for my bot using Bot Framework(C#).
I and concatenating the response and a 'Know More' link, on clicking which, link must open in a new tab. Both of them being of type Text Block. The adaptive card JSON is as follows:
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "${title1}",
"wrap": true,
"target":"_blank"
},
{
"type": "TextBlock",
"text": "${title2}",
"wrap": true,
"color": "accent"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3"
I tried adding the url parameter to the second TextBlock, and target=_blank too, but they do still open the link in the current tab itself.
Any suggestions on what is going wrong will be appreciated.
Not: Only want to second text block to be a link and open in a new tab, and it has to be a TextBlock and not a button.
Thanks in Advance.
Beta Was this translation helpful? Give feedback.
All reactions