Adaptive card issue

Copper Contributor

Hi Team,

 

We have configured a button template using the adaptive card for a chatbot that we are developing,

in that button template, we are displaying some text, and that text is a bit long, and we want the whole text to be visible to the user.

Please find the screenshot of the text.

Mridul260_0-1648707096933.png

 

and also please find the coding that we have done in javascript:


var choices = ["Yes, I understand and accept the use of third party translation service", "No, I do not accept the use of third party translation service"];
var payload = ["yes", "no"];
var msg ={};
var attachments = [];
var attachment = {
'contentType' : 'application/vnd.microsoft.card.hero'
};
var content = {
"msTeams": { "width": "full" },
"wrap":true,
'text' : " Before we get started - Chatbot is using a third party translation service that will process your messages. In order to use the Chatbot service we will need your consent to your messages being processed in this manner. Please select from below options.",
};
var actions = [];
for (var i = 0; i < choices.length; i++) {
/*var choiceItem = choices[i]; */
var element = {
"title" : choices[i],
"type" : 'imBack',
"value" : payload[i],
"wrap":true
};
actions.push(element);
}

content.buttons = actions;
attachment.content = content;
attachments.push(attachment);
msg.attachments = attachments;
print(JSON.stringify(msg));

 

 

please let me know what i can do to solve this issue. its quite important to show the whole text to user.

 

 

0 Replies