MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
281 stars 502 forks source link

Teams Adaptive Cards Not Displaying All Elements in Bot Framework #11278

Open deeptishashidharaiah opened 1 month ago

deeptishashidharaiah commented 1 month ago

Steps to reproduce

image We are experiencing an issue where adaptive cards in Microsoft Teams, created through the Bot Framework, are not displaying all elements. Specifically, we have a card with 15+ buttons that displays correctly on a webpage, but when viewed in the Teams app, it only shows up to 4 buttons.

Expected behavior

All 15+ buttons should be displayed in the adaptive card within the Teams app, as they are on the webpage. image

Actual behavior

Only 4 buttons are displayed in the adaptive card within the Teams app, with the rest not visible.

Error details

No response

Meghana-MSFT commented 1 month ago

Thank you for reporting this, we will check this and get back to you.

Meghana-MSFT commented 1 month ago

@deeptishashidharaiah - Please note that in Teams up to 6 button actions are supported. Remaining buttons will be shown as secondary actions.

https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/design-effective-cards?tabs=design#actionset:~:text=Primary%20actions%3A-,As%20a%20best%20practice%2C%20include%201%2D3%20primary%20actions.%20You%20can%20have%20up%20to%20six.,-Desktop image

We verified this at our end by adding 9 button actions.

In web chat: All buttons are visible. image

In Teams client: Only 6 buttons are visible and remaining are visible and remaining actions are shown as secondary actions.

image

deeptishashidharaiah commented 1 month ago

Thanks for quick response @Meghana-MSFT , In our case, we dont see that secondary actions to expand remaining buttons image

Meghana-MSFT commented 1 month ago

@deeptishashidharaiah - Could you please let us know if you are not seeing the secondary actions in web client only? We just checked and we are also not able to secondary actions in Teams web client. But we can see them in Desktop client. Could you please confirm?

deeptishashidharaiah commented 1 month ago

yes thats the very reason we opened this issue, this issue only occurs in teams app not in web page

deeptishashidharaiah commented 1 month ago

@Meghana-MSFT any update?

Meghana-MSFT commented 1 month ago

@deeptishashidharaiah - Could you please let us know if you are checking in Teams desktop or Teams web client?

deeptishashidharaiah commented 1 month ago

My experience is same for teams web(https://teams.microsoft.com/v2/) or teams app @Meghana-MSFT , is there a update on resolution?

Meghana-MSFT commented 1 month ago

@deeptishashidharaiah - We have raised a bug for this, we will keep you posted on the updates. Thank you.

deeptishashidharaiah commented 1 month ago

Thank you! lets keep this ticket open till then