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

Tuba Naeem 0 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
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,952 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,839 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,201 questions
{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.