0
votes

Working on a chatbot with botframework on teams, while testing we noticed the Adaptive card input texts clears,when teams chat is refreshed(i.e if we scroll up or if we switch to some other chat in the window and switch back) before submitting the card.

I guess this probably has something to do with page refresh,Could there be any workaround for this?

Note:-Earlier faced a diff type of issue where after clicking submit on adaptive card the text vanishes but that was resolved via replacing the card with the values/Text with update activity.

Since this is totally teams UI end,Any possible solutions?

2

2 Answers

2
votes

Text from Adaptive card is cleared out on Submit. This is the default behaviour. However, all the values you send from the card will be shown up under turnContext.activity.value

0
votes

Teams clears out the data from Adaptive Cards on submit, that is inbuilt. However you can work around this by instead updating/re-populating the card with the user input.

See this answer to know how to repopulate cards