Issue with Dynamic Form Fields in Adaptive Cards for MS Teams Bot

Tuba Naeem 5 Reputation points
2024-08-22T16:29:57.4833333+00:00

Hello Team,

I am currently developing a bot for Microsoft Teams using the Bot Framework, and I am leveraging Adaptive Cards for user interactions. I have a requirement where users can dynamically add more fields to a form within the same Adaptive Card by clicking an "Add More" button.

However, I am facing an issue where every time the user clicks the "Add More" button, the entire Adaptive Card gets re-rendered. My goal is to have the additional fields added seamlessly to the existing card without re-rendering the entire card. In other words, I need a way to make the Adaptive Cards dynamic so that additional input fields can be appended to the current card content without a complete refresh of the card.

Is there a way to achieve this behavior with Adaptive Cards in Microsoft Teams? If so, could you please guide me on how to implement it?

Microsoft Teams Development
Microsoft Teams Microsoft Teams for business Other
Developer technologies C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.