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

Anonymous
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 | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Teams | Microsoft Teams for business | Other
Developer technologies | C#
Developer technologies | 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.
{count} votes

Your answer

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